Seeded Random Number Generator
-
I thought that a random() function with a seed might my useful. Digging around the internet I found this bit of code which seems to work quite well.
Hope it proves handy.
Rnd_With_Seed ID: NX6RYKKD15 -
Sorry all...
My Random number generator is not quite as random as I first thought. Basically, it's rubbish !
Back to the drawing board. -
Have a look at this: https://rosettacode.org/wiki/Linear_congruential_generator
-
@pianofire Thanks for that info. I tried your suggestion, but although they are (C code etc) better than my previous attempt the examples aren't truly random. With a plot (x,y,colour) you can see a strange diagonal pattern appearing after 200 or so plots.
Looks like I'll wait for a Fuze update - hopefully with random(Seed, Range). A chap can dream can't he !
Thanks again, pianofire. -
I might be getting somewhere.
I didn't realize that a written file is included with the project.
Persistant_Stars ID:CV873MND15 -
Prettier I thought …
clear(blue)
for p = 1 to stars loop
circle(xx[p], yy[p], 2, 32, white, false)
repeat