A better chance

  • Thread starter Thread starter leo31773
  • Start date Start date
L

leo31773

Hi

I need to create a long list of 0 and 1 randomly generated, but on
number should have a slightly better chance of showing up, say lik
0.5%.

I figured out the =RANDBETWEEN(0,1) but not how to give a better od
for one number.

Can it be done?

Thanks,

Leo
 
One way:

=IF(RAND()<0.5025, 1, 0)

should give about 49.75% 0's, 50.25% 1's.
 
And of course

=--(RAND()<0.5025)

works just as well without the function call.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top