dsfmt

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2017 License: BSD-3-Clause Imports: 2 Imported by: 1

README

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

GoDoc

More information is available in the documentation of this package.

dSFMT is the Double precision SIMD-oriented Fast Mersenne Twister developed by Mutsuo Saito and Makoto Matsumoto at the Hiroshima University.

Check out the dSFMT original license file.

NOTE: This sub-subpackage is supposed to be used internally only.

Documentation

Overview

Package dsfmt wraps the dSFMT Double precision 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 Rand

func Rand(low, high float64) float64

Rand generates pseudo random real numbers between low and high; i.e. in [low, right)

Input:
 low  -- lower limit (closed)
 high -- upper limit (open)
Output:
 random float64

func Rand01

func Rand01() float64

Rand01 generates float point random between 0 (inclusive) and 1 (exclusive)

Types

This section is empty.

Jump to

Keyboard shortcuts

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