Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simulating sys(2015)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00185406
Message ID:
00185435
Vues:
32
>You could use the following, but it only 99,99% unique.
>
>cUnique = "_"+STR(INT(RAND()* 99999999 + 100000000),9)

Benn,

Random and Unique are not the same as I found out a few years ago. At a conference there was to be a contest and we used Rand to generate random badge numbers. When the code was run there were repeating values generated.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform