Generates random numbers until it finds one above <threshold>, mostly to experiment with potentially non-terminating loops in javascript