Today during work I needed to create a handful of random numbers, so I flicked across to my always open “Working” Google Sheets window and used the ‘=randbetween()’ function.
While doing so my curiosity was piqued by how random was randbetween, and what does Google use as the entropy in this ‘randbetween’ function? Is it time or perhaps something more interesting? I decided to see if I could spot a pattern.
To do so I made a column of 72000 randbetween(0,100) numbers. So 1-99, 72000 times, and ran it 20 times comparing the results. I ended up using Google Sheets ‘Stacked stepped area chart’ to help and bring out any patterns in the numbers.
Now if the randbetween function was “truly” random the higher the stacked area chart gets the smoother the line should become at the top. What actually ended up happening was quite interesting:

You can see there are clear patterns forming and being accentuated with each generation. What this means I am not sure, but perhaps Google can share how the ‘randbetween’ function works for interest sake!