18.10.2014 Views

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>SIMSCRIPT</strong> <strong>II.5</strong> <strong>Programming</strong> <strong>Language</strong><br />

Function<br />

Function<br />

Mnenonic Arguments Mode Description<br />

gamma.f e ,e ,e 1 2 3<br />

Real Returns a random sample from a gamma distribution.<br />

e = mean, real<br />

1<br />

e 2<br />

= k, real<br />

e 3<br />

= random number stream, integer<br />

hour.f e Integer Converts event time to the hour portion.<br />

e = cumulative event time, real<br />

int.f e Integer Returns the rounded integer portion of a real expression.<br />

istep.f v,e Integer Returns a random sample from a look-up table<br />

without interpolation.<br />

v = variable that points to the look-up table.<br />

e = random number stream, integer<br />

itoa.f e Alpha Converts an integer expression to an alphanumeric<br />

value (one digit only).<br />

itot.f e Text Converts an integer expression to a text value.<br />

length.f a Integer Returns the length of a text variable in characters.<br />

lin.f v,e Real Returns a random sample from a look-up table,<br />

using linear interpolation.<br />

v = variable that points to the look-up table<br />

e = random number stream, integer<br />

298

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!