Skip to content

Math

Builtin operations provided by the Math library.

Functions

  • randomReal: Real randomReal(Real min, Real max) — Returns a pseudorandom Real value in [min, max).
  • randomInt: Int randomInt(Int min, Int max) — Returns a pseudorandom Int value in [min, max).
  • seedRandom: Int seedRandom(Int seed) — Seeds the shared system random number generator used by the random operations.
  • sqrt: Real sqrt(Real value) — Takes the square root of a number.