gams:random_number_generator_in_gams

This shows you the differences between two versions of the page.

Both sides previous revision Previous revision | |||

gams:random_number_generator_in_gams [2013/01/16 16:12] support |
gams:random_number_generator_in_gams [2013/01/16 16:13] (current) support |
||
---|---|---|---|

Line 6: | Line 6: | ||

- ''num = normal(mean,std)'': Random number from a normal distribution with a mean of mean and a standard deviation of std | - ''num = normal(mean,std)'': Random number from a normal distribution with a mean of mean and a standard deviation of std | ||

- | The random numbers in GAMS are not truly random, they are pseudo-random, generated using a deterministic algorithm (called a generator) inside GAMS. If you want different random numbers on each runs, you must reseed the generator. | + | The random numbers in GAMS are not truly random, they are pseudo-random, generated using a deterministic algorithm (called a generator) inside GAMS. If you want different random numbers on each run, you must reseed the generator. |

You may use something like: ''execseed = 1 + gmillisec(jnow); '' | You may use something like: ''execseed = 1 + gmillisec(jnow); '' |

IMPRESSUM / LEGAL NOTICE
PRIVACY POLICY
gams/random_number_generator_in_gams.txt ยท Last modified: 2013/01/16 16:13 by support