Minor improvements in RandomNumberGenerator

"Next" doesn't include the max value and there needs to be +1 to it