spcg

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package spcg provides a stateless implementation of a PCG random number generator.

The implementation is copied almost verbatim from golang.org/x/exp/rand.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Next

func Next(high, low uint64) (n, nhigh, nlow uint64)

Next returns the next random number in the PCG sequence, along with the high and low bits for getting the number after the one returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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