The ZX Spectrum's RND function does not generate truly random numbers. It uses a pseudo-random sequence, meaning that the same starting point will always produce the same sequence.
RANDOMIZE sets the starting point for this sequence. RANDOMIZE 0, or simply RANDOMIZE with no argument, is different: the Spectrum uses the current value of the FRAMES system variable as the starting point.
For this calculator we use a non-zero RANDOMIZE value so that the sequence can be reproduced exactly.
Enter a non-zero RANDOMIZE value and generate the next value in the ZX Spectrum's pseudo-random sequence.
The calculator uses the same basic calculation used by the ZX Spectrum to produce its pseudo-random sequence:
Each time Next RND is pressed, the newly generated internal value becomes the starting value for the following calculation.