=INT(0+(1-0+1)*RAND()) wtf?

R

Robert Blass

=INT(0+(1-0+1)*RAND())

The "(1-0+1)" part makes no sense...

how can I express the random formula in shortest form?

=INT(0+(2)*RAND())???

I need a 1 or 0, no other options and fully whole numbers.

thanks a load.
 
R

Robert Blass

Since it's impossible for a computer to make a random number then how
can we do this for real?

I only have a computer to use.

thanks
 
T

T. Valko

I need a 1 or 0, no other options and fully whole numbers.
how can I express the random formula in shortest form?

Try one of these:

This requires the Analysis ToolPak add-in be installed on versions of Excel
prior to Excel 2007.

=RANDBETWEEN(0,1)

Another way:

=ROUND(RAND(),0)
 

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

Similar Threads


Top