Can you add a camera movement? Guess, for mobiles it won’t really work, but on PC it should be possible.
Also, looking through your code, it will be a real pain to read it because of it’s awkward code style and no comments at all. If you’re doing something interesting, try to explain most of the lines to not to get puzzled after a month.
By name, I could think it is a ‘random’ function which should return a random number. Well, in this case, I can hardly say what it might return!
Another good reason to comment your code is that the visitors would not able to understand what you’ve done there and what is it supposed to be, resulting to an ignorance and no support.
Yes, I get but it is just the next step (scene) in the project: sail by sea, river, ride by mountain serpentine. Just look at www.ibiblio.org.
Rand is chaotic logistic map Now I like algorithm “xor128” from Marsaglia, “Xorshift RNGs”.
Thank you for support. I’ll add comments but
‘deviceorientation’ event handling is corrected (maybe due to horizontal landscape device orientation?). Tested on my Xiaomi phone with Android 10 (can’t get these events on my old tablet with Windows 10). You need to use ‘https’ in address string to use device orientation.