A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

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



 
 
Thread Tools Display Modes
  #1  
Old October 11th, 2008, 03:46 AM posted to microsoft.public.excel.worksheet.functions
Robert Blass
external usenet poster
 
Posts: 35
Default =INT(0+(1-0+1)*RAND()) wtf?

=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.

  #2  
Old October 11th, 2008, 03:50 AM posted to microsoft.public.excel.worksheet.functions
Robert Blass
external usenet poster
 
Posts: 35
Default =INT(0+(1-0+1)*RAND()) wtf?

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



On Fri, 10 Oct 2008 22:46:58 -0400, Robert Blass
sayd the following:

=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.


  #3  
Old October 11th, 2008, 04:06 AM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
Default =INT(0+(1-0+1)*RAND()) wtf?

Are you looking for this?

=INT(2*RAND())

--
Rick (MVP - Excel)


"Robert Blass" wrote in message
...
=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.


  #4  
Old October 11th, 2008, 05:07 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default =INT(0+(1-0+1)*RAND()) wtf?

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)


--
Biff
Microsoft Excel MVP


"Robert Blass" wrote in message
...
=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.



  #5  
Old October 11th, 2008, 05:27 AM posted to microsoft.public.excel.worksheet.functions
Robert Blass
external usenet poster
 
Posts: 35
Default =INT(0+(1-0+1)*RAND()) wtf?

by god that was it!


On Fri, 10 Oct 2008 23:06:53 -0400, "Rick Rothstein"
sayd the following:

Are you looking for this?

=INT(2*RAND())


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.