Move random number generation to UInt256