unexpected random number generation