testing in repl hints that built in rand much faster than trying to emulate the c++ version