Go Back   Wiki NewForum | Latest Entertainment News > Career Forum & Tips > Tech Forum & Tutorial > IT Forum > MS office Tutorials (2003 & 2007) > MS Excel 2003


Topic 26: Using Excel RAND() Function to Generate Random Numbers


Reply
Views: 1460  
Thread Tools Rate Thread
  #1  
Old 01-26-2010, 09:46 AM
seema seema is offline
Administrator
 
Join Date: Oct 2009
Posts: 5,409
Default Topic 26: Using Excel RAND() Function to Generate Random Numbers

The Excel RAND function will generate a random number in Excel that is greater than or equal to 0 and less than 1.

The syntax for the RAND function is:
=RAND( )

To use the RAND( ) function (examples)

To generate a random number between 0 and 100, use =RAND() *100
To generate a random number and return only whole numbers use =INT(RAND()*100)
To generate a random number between 100 and 200, use =RAND() *(200-100)+100

Note:
If you want to use RAND function to generate a random number but don't want the numbers to change every time the cell is calculated, you can enter =RAND() in the formula bar, and then press F9 key to change the formula to a random number.


Reply With Quote
Reply

New topics in MS Excel 2003





Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
WikiNewForum)