random

package
v0.96.1-pre Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(n int) []byte

Bytes returns a random byte slice of specified length.

func Fill

func Fill(buf []byte)

Fill fills buffer with random bytes.

func Int

func Int(min, max int) int

Int returns a random integer in [min,max).

func String

func String(n int) string

String returns a random string with the n as its length.

func Uint160

func Uint160() util.Uint160

Uint160 returns a random Uint160.

func Uint256

func Uint256() util.Uint256

Uint256 returns a random Uint256.

Types

This section is empty.

Jump to

Keyboard shortcuts

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