Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using rand()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
01206655
Message ID:
01206667
Vues:
14
spot on, thanks
~M

>>hi all,
>>i am using rand() to generate a random number for a bingo game that i use for my scouts. the only problem is that it always comes out in the same sequence. then i entered a seed value of the second but now it comes out in an order like, 22, 24, 26, 29, 32, 34, 36 or there abouts. need a genuinely random number so that the game can be played over and over
>>~M
>
>Did you put rand(-1) before your code?
Go raibh maith agat

~M
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform