Link to home
Start Free TrialLog in
Avatar of Michael V Bernot
Michael V BernotFlag for United States of America

asked on

How do I use Random Number Generation Tool (Analysis Took Pak)?

I would like to use the Random Number Generation Tool of the Analysis Tool Pak to generate 10 random numbers between 1 and 100.  I cannot navigate through the Dialog Box (Tools; Data Analysis; Random Number Generation).  Can someone provide information to allow me to accomplish this task?  NOTE: I do not need to know about the Excel functions to accomplish this same task.  Thank you for your help
Avatar of Chris Bottomley
Chris Bottomley
Flag of United Kingdom of Great Britain and Northern Ireland image

Do you mean a formula like:

=RANDBETWEEN(1,100)

Chris
Avatar of Michael V Bernot

ASKER

No.....I was hoping to understand the Random Number Generation tool.  
Hi,

Just type =RANDBETWEEN(1,100) in the cell you need the random number

M@
Avatar of sirocco87
sirocco87

Try reloading the Analysis Tool Pak:

On the Tools menu, click Add-Ins.
In the Add-Ins available box, un-select the check box next to Analysis Toolpak, and then click OK.
Restart Excel
In the Add-Ins available box, select the check box next to Analysis Toolpak, and then click OK.
If you see a message that tells you the Analysis Toolpak is not currently installed on your computer, click Yes to install it.
Click Tools on the menu bar. When you load the Analysis Toolpak, the Data Analysis command is added to the Tools menu.

Is there a reason why you're not using the RANDBETWEEN function?
>>> what do you mean by:

No.....I was hoping to understand the Random Number Generation tool#

If literally that then look at:
http://support.microsoft.com/kb/q828795

Chris
The Excel random number generator used to have problems with its results.  As did many other statistical functions.  I do not follow this debate, merely the messenger.  I use MATLAB for this kind of work so I can not elaborate further.
Yes I know the following article is from 2000.
http://www.agresearch.co.nz/science/statistics/exceluse1.htm
http://www.bettersolutions.com/excel/EUN147/YI231420881.htm
That links to a short article how to use the tool
msheskey...if you could tell me how to fill in the Random Number Generation dialog box to accomplish my task that would be great (10 random numbers between 1-100).  Thank you
If you want some VBA to generate some values then:

Chris
Sub myRand()
Dim MyValue
Dim looper As Integer
Dim str As String

    Randomize
    For looper = 1 To 10
        str = str & Int((100 * rnd) + 1) & vbCrLf
    Next
    MsgBox str
End Sub

Open in new window

I need to know which distribution you want to use.  The form changes based on the distribution.
ASKER CERTIFIED SOLUTION
Avatar of msheskey
msheskey
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you for answering my question and providing the link of the possible shortfalls.