random

package
v0.51.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "random"
)

Variables

View Source
var (
	ErrNotAttached = fmt.Errorf("random source not attached to thread")
)

Functions

func AttachToThread

func AttachToThread(t *starlark.Thread)

func FromThread added in v0.51.2

func FromThread(t *starlark.Thread) (*rand.Rand, error)

func LoadModule

func LoadModule() (starlark.StringDict, error)

func SeedThread added in v0.51.2

func SeedThread(t *starlark.Thread, seed1, seed2 uint64)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL