(no title)
aqrit | 11 months ago
I was thinking naive: mask off unwanted bits then reject any value above the limit.
It would seem like https://c-faq.com/lib/randrange.html would also move the multiply --or divide by constant-- out of the loop.
aqrit | 11 months ago
I was thinking naive: mask off unwanted bits then reject any value above the limit.
It would seem like https://c-faq.com/lib/randrange.html would also move the multiply --or divide by constant-- out of the loop.
fanf2|11 months ago