User Ratings
Rate This Project
Login To Rate This Project
User Reviews
-
Using the remainder of dividing a number up to (2**31) -1 by the max raandom number you want will return numbers with a bias to the low end if your max is not a factor of (2**31) - 1. In fact if the upper bound is over ((2 ** 31) - 1) / 2 you will not get any numbers in the top. For most uses this will be a small bias but an example on sourceforge should either return random numbers or explain what the problems exist with the implementation.
- Previous
- You're on page 1
- Next