|
-
Feb 11th, 2009, 04:18 PM
#1
Re: [2008] How to achieve true 50/50 chance?
But its still not random unless you use randomize every time you request a random number i.e. as part of the loop and not just once.
If you randomize, you start the sequence with a new seed. For a given seed, you always get the same subsequent sequence. So all you are doing by randomizing is selecting a different sequence from a fixed set of sequences.
If you randomize on each loop, then you jump about between these sequences, so I would agree that this would give a much better approximation of a random list.
(Mind you if the only activity on your computer was your program, this would not be random either because the randomize would always generate the same seed sequence. This is because the system timer would increment by the same amount between operations. The sequence space is however very much larger).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|