]> Cypherpunks repositories - gostls13.git/commit
Define the new Rand and Source types to allow creating
authorDave Bort <dbort@golang.org>
Thu, 15 Oct 2009 18:46:37 +0000 (11:46 -0700)
committerDave Bort <dbort@golang.org>
Thu, 15 Oct 2009 18:46:37 +0000 (11:46 -0700)
commit3342574206edc65e335b4efb2ef7c3555b483510
treebd32d4ade569ee47c51f17a12fe4f9b60ea63205
parent18325313fb916bc697243edaccc5b1a90e2d9286
Define the new Rand and Source types to allow creating
isolated sources of random values.

Add normal and exponential distributions.

Add some tests for the normal and exponential distributions.

R=rsc
APPROVED=rsc
DELTA=1005  (904 added, 80 deleted, 21 changed)
OCL=35501
CL=35779
src/pkg/rand/Makefile
src/pkg/rand/exp.go [new file with mode: 0644]
src/pkg/rand/normal.go [new file with mode: 0644]
src/pkg/rand/rand.go [new file with mode: 0644]
src/pkg/rand/rand_test.go [new file with mode: 0644]
src/pkg/rand/rng.go