Documentation ¶
Overview ¶
Package rand provides functions for generating and dealing with random numbers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Scope = wdte.S().Map(map[wdte.ID]wdte.Func{ "gen": wdte.GoFunc(Gen), "ugen": wdte.GoFunc(UGen), "next": wdte.GoFunc(Next), "stream": wdte.GoFunc(Stream), })
Scope is a scope containing the functions in this package.
Functions ¶
func Gen ¶
Gen is a WDTE function with the following signature:
gen seed
It returns a new Source that starts with the given seed.
func Next ¶
Next is a WDTE function with the following signature:
next source
It creates and returns the next random number from the given source.
Types ¶
Click to show internal directories.
Click to hide internal directories.