Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Questions about "Random" command

Author
Message
Teabone
Valued Member
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 28th Jan 2013 08:01
I would like more insight about how to use the RANDOM=X command.

From what I read:

Is true when a random number between 0 and X equals 0. I.e. random=1 gives a 50% chance of being true, whereas random=100 gives a 1% chance of being true.

Range: X = 1 to anything, although setting above 1,000 will make this conditions very unlikely to be true.


So does that mean random=0 would mean 100% true? How would I make 10%? Would it be something like random=10?

Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 28th Jan 2013 12:12
Quote: "So does that mean random=0 would mean 100% true? How would I make 10%? Would it be something like random=10?"

Yes I think so
random=x is the same like a probability of 1/x

Hope this is true


Login to post a reply

Server time is: 2024-11-23 16:46:04
Your offset time is: 2024-11-23 16:46:04