You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Notice though that this modulo operation does not generate uniformly distributed random numbers in the span (since in most cases this operation makes lower numbers slightly more likely)."
Instead, use the facilities in the <random> header to generate a uniform distribution.
The text was updated successfully, but these errors were encountered:
From http://www.cplusplus.com/reference/cstdlib/rand/:
"Notice though that this modulo operation does not generate uniformly distributed random numbers in the span (since in most cases this operation makes lower numbers slightly more likely)."
Instead, use the facilities in the
<random>
header to generate a uniform distribution.The text was updated successfully, but these errors were encountered: