Not really. You could get also overflows if you add 1 to the generated number. And there are programming languages like C++ where overflows have disastrous effects.When you generate a random number in code, it looks something like random(100), meaning a random number between 0 - 99, NOT 1 - 100. Computers start at zero by default in almost every language. The problem we ran into is a rookie mistake that a first year student wouldn't even make after week 3. To compensate, you return the number generated PLUS 1. Somebody forgot the plus 1. It's really that simple.
Cheers
|
![]() |
![]() |
![]() |
|
Cookie Policy
This website uses cookies. If you do not wish us to set cookies on your device, please do not use the website. Please read the Square Enix cookies policy for more information. Your use of the website is also subject to the terms in the Square Enix website terms of use and privacy policy and by using the website you are accepting those terms. The Square Enix terms of use, privacy policy and cookies policy can also be found through links at the bottom of the page.