Page 1 of 1

Series generator

Posted: Sat Oct 25, 2014 11:25 pm
by JoaoMag
I want to create a set of numbers where there is a 90% chance of getting 1 and 10% of getting zero. Is there any function i can use?

Re: Series generator

Posted: Sun Oct 26, 2014 7:19 am
by startz
I want to create a set of numbers where there is a 90% chance of getting 1 and 10% of getting zero. Is there any function i can use?

Code: Select all

series s = rnd<.9