prand

package module
v0.0.0-...-de89e0f Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 License: MIT Imports: 6 Imported by: 0

README

prand

Benchmark

goos: darwin
goarch: amd64
pkg: github.com/mono0x/prand
BenchmarkMathRandInt63-8                100000000               22.2 ns/op       361.02 MB/s
BenchmarkPrandInt63-8                   20000000                94.9 ns/op        84.27 MB/s
BenchmarkMathRandInt63Parallel-8        20000000               103 ns/op          77.62 MB/s
BenchmarkPrandInt63Parallel-8           50000000                24.7 ns/op       323.91 MB/s
BenchmarkMathRandUint64-8               100000000               22.8 ns/op       350.91 MB/s
BenchmarkPrandUint64-8                  20000000               105 ns/op          75.77 MB/s
BenchmarkMathRandUint64Parallel-8       20000000               104 ns/op          76.75 MB/s
BenchmarkPrandUint64Parallel-8          50000000                26.6 ns/op       301.27 MB/s
PASS
ok      github.com/mono0x/prand 15.787s

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultNew

func DefaultNew() rand.Source

func ExpFloat64

func ExpFloat64() float64

func Float32

func Float32() float32

func Float64

func Float64() float64

func Int

func Int() int

func Int31

func Int31() int32

func Int31n

func Int31n(n int32) int32

func Int63

func Int63() int64

func Int63n

func Int63n(n int64) int64

func Intn

func Intn(n int) int

func NewSource

func NewSource(newSource func() rand.Source) rand.Source

func NormFloat64

func NormFloat64() float64

func Perm

func Perm(n int) []int

func Read

func Read(p []byte) (n int, err error)

func Shuffle

func Shuffle(n int, swap func(i, j int))

func Uint32

func Uint32() uint32

func Uint64

func Uint64() uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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