I'm working on a number guessing game in Small Basic. A number range from 1 to a self-selected number is created. There are multiple rounds and everything works in the first round. But not from the 2nd round, because the generated number is taken from the 1st round.
The code looks like this:
Sub Random z = Math.GetRandomNumber(hz) EndSub
z is the automatically generated number and hz is the highest number, i.e. H. how far you can guess.
Is there a command I can use to "reset" the variable so that a new number is generated in the 2nd round?