Expedia Group interview question

How the random number generator works