Skip to content

Commit 0825be7

Browse files
committed
Merge pull request #44 from bashtage/random-raw
ENH: Add access to raw PRNG values
2 parents e1db360 + 479676a commit 0825be7

28 files changed

+140
-8
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ an additional `method` keyword argument which can be `bm` or `zig` where
5858

5959
* `random_entropy` - Read from the system entropy provider, which is commonly
6060
used in cryptographic applications
61-
* `random_uintegers` - unsigned integers `[0, 2**64-1]`
61+
* `random_uintegers` - unsigned integers `[0, 2**64-1]`
62+
* `random_raw` - Direct access to the values produced by the underlying PRNG.
63+
The range of the values returned depends on the specifics of the PRNG
64+
implementation.
6265
* `jump` - Jumps RNGs that support it. `jump` moves the state a great
6366
distance. _Only available if supported by the RNG._
6467
* `advance` - Advanced the core RNG 'as-if' a number of draws were made,

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ New Functions
6666
- ``random_entropy`` - Read from the system entropy provider, which is
6767
commonly used in cryptographic applications
6868
- ``random_uintegers`` - unsigned integers ``[0, 2**64-1]``
69+
- ``random_raw`` - Direct access to the values produced by the
70+
underlying PRNG.
71+
The range of the values returned depends on the specifics of the PRNG
72+
implementation.
6973
- ``jump`` - Jumps RNGs that support it. ``jump`` moves the state a
7074
great distance. *Only available if supported by the RNG.*
7175
- ``advance`` - Advanced the core RNG 'as-if' a number of draws were

doc/source/dsfmt.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ Simple random data
3737
sample
3838
choice
3939
bytes
40+
random_uintegers
41+
random_raw
4042

4143
Permutations
4244
============

doc/source/mlfg.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ Simple random data
3131
sample
3232
choice
3333
bytes
34+
random_uintegers
35+
random_raw
3436

3537
Permutations
3638
============

doc/source/mrg32k3a.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ Simple random data
3838
sample
3939
choice
4040
bytes
41+
random_uintegers
42+
random_raw
4143

4244
Permutations
4345
============

doc/source/mt19937.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ Simple random data
3232
sample
3333
choice
3434
bytes
35+
random_uintegers
36+
random_raw
3537

3638
Permutations
3739
============

doc/source/pcg32.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ Simple random data
3838
sample
3939
choice
4040
bytes
41+
random_uintegers
42+
random_raw
4143

4244
Permutations
4345
============

doc/source/pcg64.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ Simple random data
3838
sample
3939
choice
4040
bytes
41+
random_uintegers
42+
random_raw
4143

4244
Permutations
4345
============

doc/source/xorshift1024.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ Simple random data
3838
sample
3939
choice
4040
bytes
41+
random_uintegers
42+
random_raw
4143

4244
Permutations
4345
============

doc/source/xorshift128.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ Simple random data
3838
sample
3939
choice
4040
bytes
41+
random_uintegers
42+
random_raw
4143

4244
Permutations
4345
============

0 commit comments

Comments
 (0)