random

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package random uses github.com/dgryski/go-pcgr to implement a faster implementation of the rand package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float32

func Float32() float32

Float32 returns a random float32.

func Int63

func Int63() int64

Int63 returns a random int64.

func Intn

func Intn(n int) int

Intn returns a random int with a bound.

func NormFloat64

func NormFloat64() float64

NormFloat64 returns a random float64 with a normal distribution. Adapted from: https://golang.org/src/math/rand/normal.go

func Seed

func Seed(seed int64)

Seed resets the random generator with a new seed.

func Uint32

func Uint32() uint32

Uint32 returns a random uint32.

Types

This section is empty.

Jump to

Keyboard shortcuts

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