Seven.FFF wrote: ↑Tue Jan 09, 2018 5:22 pm
Perhaps even more useful. The "1" first parameter of zeusprint() prints r every time, and the "r=127" condition only breaks when r is 127. It's effectively two separate breakpoint expressions chained together. The value of the last chained expression decides whether to break.
Technically R is 8-bit, but only the bottom 7 bits increment, so it will either count 0-127 or 128-255 depending upon what bit 7 is set to. As said, it's not good if you need a steady stream of random data but if you just need something simple and not very often (say choosing one of a few starting rooms ala Knight Lore) then it can be less fuss than a real random number. And, as you can see from the discussion here, getting a random number in a specific range can be a PITA if you need a nice even distribution!
Muhahahahahaha my potato brain was working much better this morning.
(still not enough to figure out how to get the values to print out in zeus though - I ended up having to copy the output down from fuse.. thus why there are only 143 data points.)
the P Rak code is working and spitting out ints. In this trivial example it gets printed to the screen.
*cue victory dance*
This would have looked a lot better if there were more data points...