package
Version:
v0.3.1
Opens a new window with list of versions in this module.
Published: Feb 25, 2024
License: MIT
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
¶
Random is a random number generator.
NewRandom returns a new random number generator using specified seed.
func (*Random) Chance ¶
Chance returns true if the specified probability is met.
func (*Random) Pick ¶
Pick returns a random element from the specified collection.
PickColors returns a random color with two differnet shades.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.