Random step not working correctly

morpheus93

Client
Регистрация
25.01.2012
Сообщения
1 038
Благодарностей
237
Баллы
63
Hi,

if I set Random to "number" from 0 to 1 it gives me 20 times in a row o as "random" output! Also if I set the range from 2 to3 (it gives me only 2 as random number)!
If I set the range from 2 to 4 it randomize only the range from 2-3, so output is e.g. 2,3,3,2,3,2,2,2,3...

Seems to be a bug.

Thx,morph
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
No it's not a bug.
Highest number for ranges doesnt count.
0-2 will give you 0 or 1
 

morpheus93

Client
Регистрация
25.01.2012
Сообщения
1 038
Благодарностей
237
Баллы
63
okay thank you Anton for this lightning-fast answer :-)
 

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