2021-07-06 08:14:03 <rick_carlino1> crc: What's the status of block I/O devices in current versions of Retro?
2021-07-06 08:15:38 I have not published anything implementing a standardized block storage device thus far
2021-07-06 08:38:47 <rick_carlino1> Ah OK
2021-07-06 10:48:07 <eli_oat > is there an example of how to use retro's random number device?
2021-07-06 10:52:53 <rick_carlino1> eli_oat: Are you trying to do something more advanced than what n:random
provides?
2021-07-06 10:53:04 <eli_oat > lol, nope!
2021-07-06 10:53:19 <rick_carlino1> Ah ok, yeah I think thats just n:random n:put nl
2021-07-06 10:53:37 <rick_carlino1> I hope you're building a game! :-P
2021-07-06 10:53:44 <eli_oat > can you set a range for n:random?
2021-07-06 10:53:53 <eli_oat > like n:random between x and x + 11
2021-07-06 10:54:12 <eli_oat > (I pretty much exclusively make games at this point for hobby projects :P)
2021-07-06 10:54:18 <eli_oat > this, though, is actually answering a q for a friend
2021-07-06 10:54:24 <rick_carlino1> That is a good question.
2021-07-06 10:56:00 <rick_carlino1> crc might know. I am unsure. Maybe you could convert it to a float and then do some scaling.
2021-07-06 11:16:17 n:random does not provide a range, but you could do something like:
2021-07-06 11:16:18 :n:ranged-random (lower,upper-random) over - n:inc n:random swap mod + ;
2021-07-06 11:21:15 <eli_oat > oh wicked!
2021-07-06 11:21:19 <eli_oat > thanks crc
application/octet-stream
This content has been proxied by September (ba2dc).