Just starting out? Need help? Post your questions and find answers here.
-
UUICEO
- User

- Posts: 57
- Joined: Tue Mar 10, 2009 9:09 pm
- Location: Shakopee, Minnesota. USA
Post
by UUICEO »
If I use RandomSeed(1) in my program, will it produce the same value when I use Random(100) on every OS/CPU it is run on?
Code: Select all
RandomSeed(1)
Debug Random(100); Expected output = 72
RandomSeed(ElapsedMilliseconds())
Debug Random(100); Expected output is more random.
-
Shield
- Addict

- Posts: 1021
- Joined: Fri Jan 21, 2011 8:25 am
- Location: 'stralia!
-
Contact:
Post
by Shield »
Yes, it should. If it doesn't it must be a bug.

-
UUICEO
- User

- Posts: 57
- Joined: Tue Mar 10, 2009 9:09 pm
- Location: Shakopee, Minnesota. USA
Post
by UUICEO »
I thought it should work that way.. I just wanted to make sure as I don't have my VM Workstation setup on this computer and no other OS's to test on.
Thanks for the reply.