0

I am used on other programming languages which let you set the distribution you want to use on a random number generator. I tried to find in docs the same for VB6, but I cannot even tell which distribution uses. (I guess it is the uniform)

Here is the documentation

And it easy to use as: Public Shared Function Rnd[(Number)] As Single

I still want to generate a random number between 0 and 1, but instead of uniform (or what the default Rnd uses), I want the normal distribution. Is there any way to do this in VB6 or you need a custom function?

Tasos
  • 7,325
  • 18
  • 83
  • 176

1 Answers1

0

There is nothing built in. You need a custom function - see this question for algorithms.

Community
  • 1
  • 1
MarkJ
  • 30,070
  • 5
  • 68
  • 111