Random numbers
#1

I'm making a casino game... with random paying

new rand;
rand = random(300);

Example if numer 5 = he wins 50k... if number 10,20,150 = he wins 25k


The question is wich number will come hardly ? My jackpot numer is "1" its hard to get it.... i tested it wich numbers could be the same/hardly ?
Reply
#2

They all have the same chance to be chosen. That's why it is called RANDOM.
Random number - A number generated from a large set of numbers, using an algorithm that gives every number an equal probability of occurring.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
They all have the same chance to be chosen. That's why it is called RANDOM.
Random number - A number generated from a large set of numbers, using an algorithm that gives every number an equal probability of occurring.
You use it like this

pawn Код:
new rand = random([b]300[/b]);
The less the bolded number is, the bigger changes is there for winning.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)