5 ms·
Maybe also try taking your random number [0, 1] to a certain power. E.g., square the number. Or randomly choose a max and then iteratively choose a random value
by logn 11y ago
Maybe also try taking your random number [0, 1] to a certain power. E.g., square the number. Or randomly choose a max and then iteratively choose a random value between [0, max] and optionally keep repeating.
There's probably an elegant way to do that in hardware (but I'd have no idea).