logoalt Hacker News

rebane2001yesterday at 12:15 PM1 replyview on HN

It's really easy, I was considering adding it.

The easiest way is to make an @property that's animated at ridiculous speeds that can be sampled to get (sort of) random bits.


Replies

Sesse__yesterday at 6:38 PM

Or use a cycle timer and run a PRNG from it.

Or wait for us to launch random() :-) (It's in development, available if you enable a flag)