Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using rand()
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01206655
Message ID:
01206657
Views:
19
This message has been marked as the solution to the initial question of the thread.
>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?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform