in reply to Re^11: How likely is rand() to repeat?
in thread How likely is rand() to repeat?
MT19973 generates 32 bit numbers. It will not generate more than 232 different numbers. It takes 32 bits as a seed.
If the important bit is that it produces 32-bit numbers and is seeded by a 32-bit number -- though from memory, the underlying C implementation can be seeded with 640 32-bit numbers, as can Math::Random::MT::Auto I believe; but let's skip that detail -- why do you think it is named MT19937?
But if you want to split hairs, be my guest.
You started it. I was responding to you.
And it does make a difference.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^13: How likely is rand() to repeat?
by JavaFan (Canon) on Mar 09, 2012 at 21:00 UTC | |
by BrowserUk (Patriarch) on Mar 09, 2012 at 21:09 UTC | |
by JavaFan (Canon) on Mar 09, 2012 at 23:33 UTC | |
by BrowserUk (Patriarch) on Mar 09, 2012 at 23:38 UTC | |
by JavaFan (Canon) on Mar 09, 2012 at 23:47 UTC | |
|