Skip to content

Commit b672393

Browse files
committed
ENH: Readd random uintegers
Add random uintegers for performance benchmarking
1 parent c16a03a commit b672393

File tree

14 files changed

+1639
-0
lines changed

14 files changed

+1639
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ commonly used in cryptographic applications
9393
* `random_raw` - Direct access to the values produced by the underlying
9494
PRNG. The range of the values returned depends on the specifics of the
9595
PRNG implementation.
96+
* `random_uintegers` - unsigned integers, either 32- (`[0, 2**32-1]`)
97+
or 64-bit (`[0, 2**64-1]`)
9698
* `jump` - Jumps RNGs that support it. `jump` moves the state a great
9799
distance. _Only available if supported by the RNG._
98100
* `advance` - Advanced the core RNG 'as-if' a number of draws were made,

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ New Functions
9797
- ``random_raw`` - Direct access to the values produced by the
9898
underlying PRNG. The range of the values returned depends on the
9999
specifics of the PRNG implementation.
100+
- ``random_uintegers`` - unsigned integers, either 32-
101+
(``[0, 2**32-1]``) or 64-bit (``[0, 2**64-1]``)
100102
- ``jump`` - Jumps RNGs that support it. ``jump`` moves the state a
101103
great distance. *Only available if supported by the RNG.*
102104
- ``advance`` - Advanced the core RNG 'as-if' a number of draws were

doc/source/dsfmt.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Simple random data
3737
sample
3838
choice
3939
bytes
40+
random_uintegers
4041
random_raw
4142

4243
Permutations

doc/source/mlfg.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Simple random data
3131
sample
3232
choice
3333
bytes
34+
random_uintegers
3435
random_raw
3536

3637
Permutations

doc/source/mrg32k3a.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Simple random data
3838
sample
3939
choice
4040
bytes
41+
random_uintegers
4142
random_raw
4243

4344
Permutations

doc/source/mt19937.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Simple random data
3232
sample
3333
choice
3434
bytes
35+
random_uintegers
3536
random_raw
3637

3738
Permutations

doc/source/pcg32.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Simple random data
3838
sample
3939
choice
4040
bytes
41+
random_uintegers
4142
random_raw
4243

4344
Permutations

doc/source/pcg64.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Simple random data
3838
sample
3939
choice
4040
bytes
41+
random_uintegers
4142
random_raw
4243

4344
Permutations

doc/source/xoroshiro128plus.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Simple random data
3838
sample
3939
choice
4040
bytes
41+
random_uintegers
4142
random_raw
4243

4344
Permutations

doc/source/xorshift1024.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Simple random data
3838
sample
3939
choice
4040
bytes
41+
random_uintegers
4142
random_raw
4243

4344
Permutations

0 commit comments

Comments
 (0)