But the (non-repeating) sequences it could produce are any permutation of the following 24 permutations of the 4 basic values it can produce:Can you explain how it does that? Given just four different values for the seed, how can you pick from 24, with each element having a chance to be selected?
Hence, the 32-bit, Mersenne Twister MT19937 can produce 219937 - 1 values (from any given starting point) before it repeats itself exactly.Sure. But how many different such sequences can it make? Looking at the pseudo code implementation on Wikipedia, it's all derived from a single, 32-bit seed. Which would limit the number of possible sequences to 232.
In reply to Re^5: How likely is rand() to repeat?
by JavaFan
in thread How likely is rand() to repeat?
by desertrat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |