Explorations on Random Numbers, Part 4
filed in Code on Aug.02, 2011
Astute readers will notice that the sample code in the previous post passes in a constant value as the seed to the random number generator. What would happen if we tried passing in the current time? Obviously, that would completely prevent the optimization we saw last time that just calculates the result, since the compiler [...]