[SOLVED] Random number bug

Daikaiser

Client
Регистрация
06.09.2011
Сообщения
68
Благодарностей
9
Баллы
8
Hi, I just noticed that there is a bug when you run a random number. For example, if the range is 0-3, it never outputs the last number. Just to let you know if this was not reported before.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
It's not a bug.
It's like the first line in table or list is always 0 and not 1.

If you need to take 1.2. or 3 randomly, you use range 1-4
 
  • Спасибо
Реакции: Daikaiser

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