Implementation of Box-Muller transform in Golang.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cmd/boxmuller
.gitignore
LICENSE.txt
README.md
box-muller.go

README.md

boxmuller

Implementation of Box-Muller transform in Golang.

Install

go get github.com/takatoh/boxmuller

Usage

bm := boxmuller.New(mu, sigma)
z1, z2 := bm.Rand()

API

New(mu, sigma)

Create a BoxMuller struct.

(bm *BoxMuller) Rand()

Returns 2 values.

License

MIT License