rnd(-1) (or any negative number) seems to yield a random number from -32768 to 32767.
also rnd() seems to yield a random number between 0 and 1
not sure if those are intended features, but they surely aren't documented.
I think rnd() -> (-32768,32767) and maybe rnd(x) -> sgn(x)*rnd(abs(x)) would make more sense.
edit: plus srand() doing something to the effect of srand(time()) would be nicer than defaulting to srand(0)
yes, that's a full 32 random bits (16 integer part + 16 mantissa) and that's definitely useful. having that on rnd() (no parameter) and rnd(x) returning a number between 0 and x (or x and 0) would be slick.
yes, I know that doc, it's nicer but not much more thorough. (at this point, maybe there's a full book that needs to be written?)
I can try to tweak the colors more. The original goal was to pick from the Pico-8 palette, and the current pick is the least offensive choice in that regard. I've seen it look worse on some monitors than others for reasons I don't understand.
(Ctrl-reload to see an update, lmkwyt.)
hey, that salmon/peach color looks a whole lot better, thanks! bookmarked :)
the red text here on the bbs is also hard to read but far less prominent (few people bother with a title in their post). the current top banner is painful though (red glyphs on grey)
[Please log in to post a comment]