Dating with Math

Test your JavaScript programming skills by solving the given puzzle about random number generation.

Puzzle code

Carefully read the code given below:

Get hands-on with 1400+ tech skills courses.