Simulation & Probabilistic Analysis SDK
Add Distribution Fitting & Simulation Features to Your Applications

SPA SDK Help HomeLearn More About the SPA SDK

SPAApplication.Randomize (method)

Description

Initializes the random number generator.

Syntax

object.Randomize(seed as Long)

Arguments

Name
Type
Value
Description
seed Long 0 Initialize the generator based on the current system time. As a result, a different sequence of random numbers will be produced every time your simulation code is executed.
Positive integer (1, 2, ...) Use the specified seed value (this allows you to reproduce (replay) the same sequence of random numbers).

Example

Sub Test()
  SPAApplication.Initialize
  SPAApplication.Randomize(1)

  ' perform the simulation
  ' ...
End Sub
  
Copyright © MathWave Technologies
www.mathwave.com