update to Unexpected random number generation