Discover Packages
git.wntrmute.dev/kyle/goutils
rand
package
Version:
v1.7.7
Opens a new window with list of versions in this module.
Published: Jun 15, 2024
License: BSD-2-Clause, ISC
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package rand contains utilities for interacting with math/rand, including
seeding from a random sed.
CryptoUint64 generates a cryptographically-secure 64-bit integer.
Int is a wrapper for math.Int so only one package needs to be imported.
Intn is a wrapper for math.Intn so only one package needs to be imported.
Intn2 returns a random value between min and max, inclusive.
Seed initialises the non-cryptographic PRNG with a random,
cryptographically secure value. This is done just as a good
way to make this random. The returned 64-bit value is the seed.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.