You could have saved milliseconds and used a pseudo random number generator.