package
Version:
v1.2.12
Opens a new window with list of versions in this module.
Published: May 25, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
Gosl. rnd/sfmt. Light wrapper to the SFMT library
SFMT is the SIMD-oriented Fast Mersenne
Twister developed by Mutsuo Saito and Makoto
Matsumoto at the Hiroshima University.
Check out the SFMT original license file.
NOTE: This sub-subpackage is supposed to be used internally only.
Documentation
¶
Package sfmt wraps the SFMT SIMD-oriented Fast Mersenne Twister
Init initializes random numbers generator
Input:
seed -- seed value; use seed <= 0 to use current time
PrintIDString prints SFMT id string
Rand generates pseudo random integer between low and high
Input:
low -- lower limit
high -- upper limit
Output:
random integer
func Shuffle(values []int)
Shuffle shuffles slice of integers
Source Files
¶
Click to show internal directories.
Click to hide internal directories.