util

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: MIT Imports: 2 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int31n

func Int31n(r *rand.Rand, n int32) int32

Int31n was copied from src/math/rand/rand.go to support Shuffle in go versions before 1.10.

func Round added in v1.20.0

func Round(x float64) float64

Round was copied from src/math/floor.go to support Round in go versions before 1.10.

func Shuffle

func Shuffle(r *rand.Rand, n int, swap func(i, j int))

Shuffle was copied from src/math/rand/rand.go to support Shuffle in go versions before 1.10.

Types

This section is empty.

Jump to

Keyboard shortcuts

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