Race Day Math.Random() question

If the generated numbers are assigned to runners, , is there any function that blocks repetitive numbers.
I mean, Math.Random () numbers did not repeat themself. It would be a problem if runners had the same numbers.

True but that would be outside the scope of the assignment. You would have to store numbers and cross reference newer number with this list.

But very good that you are thinking this way ;). Perhaps you could get back to this assignment later on when you have acquired more JavaScript skills ;).

1 Like

I understand. Thanks forfast response! :slight_smile:

1 Like

Sure no problem! Happy coding!