Random Number in VBA

  • Thread starter Thread starter C. Roenbaugh
  • Start date Start date
C

C. Roenbaugh

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
 
Think you mean

=Rand()

But he appeared to be familiar with that since he was trying to use it in
VBA.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top