Just something I did because I was bored. For best results, use the binary algorithm.
now the number is between 1 and 300 and it changes every time.