Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Random Number in VBA
I need a random number generated in a UDF. I tried using
worksheetfunction.rand() without success. The number needs to be uniformly distributed between 0 and 1. Any ideas? Thanks Chris Roenbaugh |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Random Number in VBA
Public Function MyFunc()
num = rnd MyFunc = num End Function -- Regards, Tom Ogilvy "C. Roenbaugh" wrote in message oups.com... I need a random number generated in a UDF. I tried using worksheetfunction.rand() without success. The number needs to be uniformly distributed between 0 and 1. Any ideas? Thanks Chris Roenbaugh |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Random Number in VBA
=Rnd()
"C. Roenbaugh" wrote: I need a random number generated in a UDF. I tried using worksheetfunction.rand() without success. The number needs to be uniformly distributed between 0 and 1. Any ideas? Thanks Chris Roenbaugh |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Random Number in VBA
Think you mean
=Rand() But he appeared to be familiar with that since he was trying to use it in VBA. -- Regards, Tom Ogilvy "Gary''s Student" wrote in message ... =Rnd() "C. Roenbaugh" wrote: I need a random number generated in a UDF. I tried using worksheetfunction.rand() without success. The number needs to be uniformly distributed between 0 and 1. Any ideas? Thanks Chris Roenbaugh |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Random Number in VBA
tHANKS
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Addding a Random number to a fixed number..... | Excel Discussion (Misc queries) | |||
How can I match a random number with closest number from sequence? | Excel Worksheet Functions | |||
same number appears in a random number generator | Excel Worksheet Functions | |||
Generating (in a random order)each number once from a given number | Excel Worksheet Functions | |||
How do I find random number in list of random alpha? (Position is. | Excel Discussion (Misc queries) |