Rand() period

What is the period of Julia’s rand() function (default rand(), returning Float64)?

How many times can you call rand() before it starts repeating?

Currently Julia uses the Mersenne twister generator. It has a period of 2^19937 - 1. In other words it will never repeat.

2 Likes