hardStudy question · answer published in Probability interview questions, so no pointsmathprobabilityrandom
Bias from random byte % 100
Code makes a 0–99 lucky draw number with `randomByte % 100`, where randomByte is uniform from 0 to 255. What is wrong?
Discussion 0
Join free to post in the discussion.
Related questions
- Remainder of a negative numberBackend Developer
- Why 0.1 + 0.2 is not 0.3Backend Developer
- Storing rupee amounts safelyBackend Developer
- GST inside an inclusive priceBackend Developer
- How many buses are neededBackend Developer
- Checking for a power of twoBackend Developer
- Which year is a leap yearBackend Developer
- Month number in new DateBackend Developer