sfmt

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2017 License: BSD-3-Clause Imports: 4 Imported by: 0

README

Gosl. rnd/sfmt. Light wrapper to the SFMT library

GoDoc

More information is available in the documentation of this package.

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

Overview

Package sfmt wraps the SFMT SIMD-oriented Fast Mersenne Twister

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(seed int)

Init initialises random numbers generator

Input:
 seed -- seed value; use seed <= 0 to use current time

func PrintIDString

func PrintIDString()

PrintIDString prints SFMT id string

func Rand

func Rand(low, high int) int

Rand generates pseudo random integer between low and high

Input:
 low  -- lower limit
 high -- upper limit
Output:
 random integer

func Shuffle

func Shuffle(values []int)

Shuffle shuffles slice of integers

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL