Random generates only one number

  • Автор темы Автор темы jcknick
  • Дата начала Дата начала

jcknick

Client
Регистрация
10.05.2013
Сообщения
154
Реакции
9
Баллы
18
Hi, I've just updated ZP to the latest version and came across a strange problem. I need Random generator to either give me 1 or 2. And it keeps giving me 1 - 100% of the time.
 
Oh... is this some universal programming principle? Or is it only PM related? :) so if i set 1 to 100, i will never get a 100 and 99 will be the max number?
 
Oh... is this some universal programming principle? Or is it only PM related? :-) so if i set 1 to 100, i will never get a 100 and 99 will be the max number?

Yes as i said this is nothing new and was there from code was born :)
You generate numbers excluding last number you show... Not only in PM this is like that in whole c#
 
Another day, another how-to... Thanks ;)
 

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