Platforms to show: All Mac Windows Linux Cross-Platform

RandomNormalDistributionMBS(Mean as Double, StdDev as Double) as double

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Math MBS Util Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Generates a random number using normal distribution.
Example
// simulate 1000 body heights with mean 175 cm and standard deviation 8 cm
Var sum As Double
For i As Integer = 1 To 1000
sum = sum + RandomNormalDistributionMBS(175, 8)
Next
MessageBox "Average: " + Format(sum / 1000, "0.0") + " cm"

Generates random numbers according to the Normal (or Gaussian) random number distribution.

Blog Entries

Xojo Developer Magazine

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...