Z Random can also be used from your VBA projects, just add a reference to "Z Random" and use Z Random.Next and Z Random. NextBetween to generate random numbers, or use one of the functions to generate random variables from a probability distribution like NextPareto or NextHypergeometric.
Public Sub ShowRunningTotal() ' Re-seed ZRandom with the current time ZRandom.Seed Timer ' generate 100 poisson numbers and keep a running total Dim runningTotal As Double Dim counter As Integer For counter = 1 To 100 runningTotal = runningTotal + ZRandom.NextPoisson(5) Next ' show the total MsgBox "The total was: " & CStr(runningTotal) End Sub
Z Random for Excel
Secure Payment Options
30 Day Money Back Guarantee
| Pricing: |
|
Special ! Free Choice of Complete Excel Training Course OR Excel Add-ins Collection on all purchases totaling over $70.00. ALL purchases totaling over $150.00 gets you BOTH! Purchases MUST be made via this site. Send payment proof to special@ozgrid.com 31 days after purchase date.
See Also: OzGrid Excel Plus || Monte Carlo Add-In for Excel || Random Numbers Generator and Statistics || Numerical Searching Methods and Option Pricing Models || Finance and Statistics Models || Excel Add-ins or, All Software
Instant Download and Money Back Guarantee on Most Software
Excel Trader Package Technical Analysis in Excel With $139.00 of FREE software!
Microsoft ® and Microsoft Excel ® are registered trademarks of Microsoft Corporation. OzGrid is in no way associated with Microsoft
GIVE YOURSELF OR YOUR COMPANY 24/7 MICROSOFT EXCEL SUPPORT & QUESTIONS