random numbers reverse-engineering