Upon pressing any key, I'd like an active object to change its position.
It's position must remain within an area in MMF's frame/level.
Each position must be predictable, meaning the user may press any key and update its position multiple times, and if the game/frame is reset, the position will be the same as the previous cycle. And it must appear random, so I can't have it showing up in a sine wave or something.
It's a little difficult to explain, so I made this illustration
The red box should change it's position on each click 1,2,3 etc. and if the frame is reset, the position should be the same as the previous cycle.
Is there some way to do this, I guess through some kind of math?