The SML/NJ Library Reference Manual


The RANDOM signature


Synopsis

signature RANDOM

Interface

type rand
val rand : (int * int) -> rand
val toString : rand -> string
val fromString : string -> rand
val randInt : rand -> int
val randNat : rand -> int
val randReal : rand -> real
val randRange : (int * int) -> rand -> int

Description

type rand

rand (i, j)
explain the use and semantics of rand HERE.

toString ra
explain the use and semantics of toString HERE.

fromString s
explain the use and semantics of fromString HERE.

randInt ra
explain the use and semantics of randInt HERE.

randNat ra
explain the use and semantics of randNat HERE.

randReal ra
explain the use and semantics of randReal HERE.

randRange (i, j) ra
explain the use and semantics of randRange HERE.



[ INDEX | TOP | Parent | Root ]

Last Modified May 29, 1996
Copyright © 1996 AT&T Research