there are 5 different characters that start by generating a random number, then taking the closest number to the goal then changing it slightly. 1-6 change goal values. spacebar to move 1 timestep.
I doubt the code is optimized.