package
Version:
v1.1.5
Opens a new window with list of versions in this module.
Published: Aug 20, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
Package random includes some functions relative to random.
BigInt returns a random bigInt in [x..y], with the help of crypto/rand.
Int returns a random integer in [x..y].
Int64 returns a random int64 in [x..y].
func Slice(s interface{}) interface{}
Slice returns a random element of a slice of empty interface variables.
If s is not a slice, the function will return a nil pointer.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.