random

package
v1.0.64 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrentSafeIntRandomizer

type ConcurrentSafeIntRandomizer struct {
}

ConcurrentSafeIntRandomizer implements dataRetriever.IntRandomizer and can be accessed in a concurrent manner

func (*ConcurrentSafeIntRandomizer) Intn

func (csir *ConcurrentSafeIntRandomizer) Intn(n int) (int, error)

Intn returns an int in [0, n) interval

func (*ConcurrentSafeIntRandomizer) IsInterfaceNil

func (csir *ConcurrentSafeIntRandomizer) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

Jump to

Keyboard shortcuts

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