H
Demos

This is a simple Excel spreadsheet that generates a small 2D maze using a random number function in each cell and then using the result to set conditional formatting to add the borders. These mazes are generated from just four numbers not the multi-billion I talking about.

When loaded tap F9 to generate a new maze. If you find a maze you want to keep or play with, select the whole sheet, Copy, then Paste Special and select Values. 

You can extend the maze simply but copying the existing maze cells.

 

The following is a simple program (written in Delphi/Pascal) that generates a random number between 0 and 1 form three coordinates (x, y, z).  Fill in the three numbers and click the Calculate button.  There are serious errors with is little program, it is simply to show how easy it is to create a consistent random number generator from coordinates.

¦

For those interested this is the relevant code:

K := 31415926;
L := 27182818;
M := 100000000;

x := StrToInt(XValue.text);  {extract the number form the text boxes}
y := StrToInt(YValue.text);
z := StrToInt(ZValue.text);

X1 := (K * x + L);  {generate three large numbers based on the inputs from the text boxes}
Y1 := (K * y + L);
Z1 := (K * z + L);

r := abs(x1 + y1 + z1) mod M;  {leave only the eight least significant digits}

Result.Text := FloatToStr(r/100000000) ;  {reduce the number to a decimal between 0 and 0.99999999}