xorshift

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package xorshift contains functions for fast generating predictable pseudorandom numbers See https://prng.di.unimi.it .

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func XoRoShiRo128SS

func XoRoShiRo128SS(s0, s1 uint64) (uint64, uint64, uint64)

XoRoShiRo128SS calculates predictable pseudorandom number with XOR/rotate/shift/rotate 128** (xoroshiro128starstar) algorithm. In some cases a little faster than XorShift64S, but uses 128 bits footprint. see https://prng.di.unimi.it/xoroshiro128starstar.c

func XorShift64S

func XorShift64S(s uint64) (uint64, uint64)

XorShift64S calculates predictable pseudorandom number with XOR/Shift 64* (shorshift64*) algorithm. see https://vigna.di.unimi.it/ftp/papers/xorshift.pdf

Types

This section is empty.

Jump to

Keyboard shortcuts

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