Registry / utility / srand
library1.6.1gogounverified

Package srand provides a simple random number generator with various distributions.

go get moul.io/srand
INSTALL
IMPORT
SIG · SRAND
S
srand
utilitygov1.6.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

srand
✓ moul.io/srand

Creates a seeded random number generator and prints a random integer.

package main import ( "moul.io/srand" ) func main() { rng := srand.New(42) println(rng.Intn(100)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.6.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources