Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Random number generator?

Status
Not open for further replies.

eHanSolo

Technical User
May 24, 2004
260
GB
Hi guys,

does anyone know if there's a formula that keeps generating random numbers??? Many thanks!

E
 
You can use =RANDBETWEEN(1,200) to specify a random number between two numbers you choose (in this case 1 and 200). You can just click on F9 to get refreshing it.
 
Never heard about RANDBETWEEN - sounds like a UDF based on RAND to me? I doesn't exist on any of my machines (2000, XP) anyway.


However, you can use =RAND(), which selects a random number between 0 and 1. To get it in the correct range / format, multiply with a number of your choice, and combine with ROUND (or ROUNDUP, ROUNDDOWN).

Example:

=roundup(RAND()*100)

for a number between 1-100.

// Patrik
 
Randbetween is an Excel Add In
It won't appear on you machine until you add it in
It's on the Analysis Tool Pack - VBA

Regards, Phil

"If in doubt, hit it with an end user!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top