drand48() is definitely in the RISC OS clib, but doesn't seem to be in the header files or docs?

also it returns values from [0,MAXFLOAT) instead of [0,1) which is weird but ok.

I may have to experiment a little with srand48(). Also RISC OS time values are different, so srand48(time()) might not be quite that simple...

Sign in to participate in the conversation
Mastodon @ SDF

"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko