Quote:
Of course, the best way is to just exclude the numbers from RAND_MAX down to RAND_MAX - RAND_MAX % N (N = 10, 1000, etc) as contributing to the asymmetry by taking another rand if such occurs (repeat as necessary). Then, its a tradeoff between rand returns to exclude and number of calls of rand to concatenate...
but I would qualify that with the fact that a mod multiplying algorithm won't give good randomness for use in higher dimension vector calculations because of the decomposition dependencies of the operation, so if its needed, use a different library's pseudorandom.