Skip to content

Random package

This package provides random number generation.

{
  "type": "system"
}

Install

{
  "dependencies": {
    "Random": "pen:///random"
  } 
}

Random'Context module

Types

Context

A context of random number generation.

type Context = context'Context

Functions

No functions are defined.

Random'Random module

Types

No types are defined.

Functions

Number

Generate a random number in a range of [0, 1).

\(ctx Context) number