Documentation
¶
Index ¶
- func Float(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func Init(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func LoadModule() starlark.StringDict
- func RandInt(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func RandRange(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float ¶
func Float(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)
Float returns a random floating point number r such that 0.0 <= r < 1.0.
Returns: float
func Init ¶
func Init(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)
Init seeds the pseudo-random number generator.
Arguments:
Arguments:
seed: Optional integer seed for the generator. If not provided, current time is used.
Returns: None
func LoadModule ¶
func LoadModule() starlark.StringDict
LoadModule returns the dictionary of built-in functions for this module.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.