crandom

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dice

func Dice() int

Dice returns a random integer of range 0-255

func RandInts

func RandInts(n int) (m []int)

RandInts returns a randomly ordered slice of ints

func Randbytes

func Randbytes(n int) (b []byte)

Randbytes returns n Bytes of random data

func RandomInt

func RandomInt(max int) int

RandomInt returns an integer between 0 and max

func Shuffle

func Shuffle(slice []string)

Shuffle performs an inline Fisher-Yates Shuffle of a string slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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