rand

package
v1.32.4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Reader io.Reader

Reader provides a random reader that can reset during testing.

Functions

func CryptoRandFloat64

func CryptoRandFloat64() (float64, error)

CryptoRandFloat64 returns a random float64 obtained from the crypto rand source.

func Float64

func Float64(reader io.Reader) (float64, error)

Float64 returns a float64 read from an io.Reader source. The returned float will be between [0.0, 1.0).

Types

This section is empty.

Jump to

Keyboard shortcuts

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