random

random in pure definition, contextual keyword

The random flag marks a def pure function as a pseudo-random number generator, and allows it to call other pseudo-random number generators from its body.

def random pure twoPoisson(a: number, b: number) with 
  return random.poisson(a) + random.poisson(b)

This keyword can currently not be applied to def process functions.

See also

User Contributed Notes
0 notes + add a note