random

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomBoolean

func RandomBoolean() bool

Returns true or false, randomly.

func Range

func Range(min, max uint64) (uint64, error)

Return a non-negative random number in the inclusive range [min, max]. If max <= min, returns the maximum uint value and an error. TODO: Support negative ranges?

Types

This section is empty.

Jump to

Keyboard shortcuts

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