next up previous contents index
Next: Other operators and operands Up: [B/D] operands and operators Previous: Accessing belief inputs

Random number generators

There are two random number generators, providing uniformly and standard normally distributed pseudo-random numbers. Note that these operands have special properties in data assignments. In particular, they are evaluated only as necessary.

Normally distributed random numbers
 


tex2html_wrap_inline33790 tex2html_wrap_inline33790 Usage

tex2html_wrap_inline33806 tex2html_wrap_inline33806

This returns a standardised normal tex2html_wrap_inline44284 pseudo-random number with seed set by default or by a SEED:  command. The nrand  operand can act like an operator in some circumstances, for example when used in conjunction with the DATAVEC:  command.  

Uniformly distributed random numbers
 
tex2html_wrap_inline33790 tex2html_wrap_inline33790 Usage

  • urand  operand.

tex2html_wrap_inline33806 tex2html_wrap_inline33806

This returns a uniform tex2html_wrap_inline44286 pseudo-random number with seed set by default or by a SEED:  command. The urand  operand can act like an operator in some circumstances, for example when used in conjunction with the DATAVEC:  command.  



David Wooff
Wed Oct 21 15:14:31 BST 1998