Bugs in version 5.45.0.0

  • Автор темы Автор темы Deemer84
  • Дата начала Дата начала
When generating a Random Number "From 1 to X" I always assumed it would include the X as a potential generated number. However, when generating a random number, it never includes X as a potentially generated number, so I must include X+1 for the range. For instance, if I want to select a number between 1 and 5 (1,2,3,4,5) I have to set the range from 1 to 6. Is this normal functioning of this? Thanks.
 

Вложения

  • Screenshot 2020-07-28 15.11.16.png
    Screenshot 2020-07-28 15.11.16.png
    9,7 KB · Просмотры: 230
When generating a Random Number "From 1 to X" I always assumed it would include the X as a potential generated number. However, when generating a random number, it never includes X as a potentially generated number, so I must include X+1 for the range. For instance, if I want to select a number between 1 and 5 (1,2,3,4,5) I have to set the range from 1 to 6. Is this normal functioning of this? Thanks.
Yes, this is normal behavior for random generation in programming.
 
  • Спасибо
Реакции: GLADO

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)