Ported random number generator