Fixes random number generation algorithms

Makes the distributions actually uniform