Comment Comment by geoffhill I like popcount for converting a 2^N-bit uniformly-distributed random number into a N-bit binomially-distributed one. Each bit of the input simulates a random coin flip. parent geoffhill 7 years ago