The DEMRND.lng Model

Generating Random Numbers

View the model
Download the model

In cases where you are modeling under uncertainty, it is useful to have a random number generator to help simulate a situation. LINGO supports the @RAND function, which can be used to generate sequences of pseudo random numbers with uniform distribution between 0 and 1. By using the same seed value, you can recreate a series of numbers. In this example, we generate 15 random numbers, and then use them with the @PSN and @PTD functions to generate observations from both the unit Normal and T distributions.

Keywords:

Uncertainty | Accounting | Random Number | Sampling |