Domanda di colloquio di Goodnotes

How would I test the problem with an element of randomness?