How do I do this???

How do I return a random value for my location, then be able to move to another location, return a new value for that location, then move back to my original location and return the original value, and so on, returning a new value for each new location, and returning the previously generated values for the old locations? By the way, the code is in python.

You are viewing a single comment. View All
Answered by MrVoo [earned 5 cycles]
View Answer

I mean imaginary location, it generates a random value, then I input a command like 'left' and it repeats, and remembers the locations already generated.