summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2016-01-03 15:29:31 -0700
committerCharles Harris <charlesr.harris@gmail.com>2016-01-03 15:29:31 -0700
commit9fb9288f461c7c7af9708f136fa4f29acdc734a8 (patch)
treee4848c8e1ad3298b2c0856e446566388ce87f5d7 /doc
parent5dab9275475e70630d7b1242c3530a6726c61fa2 (diff)
parentbc2a97bde26a026e75adec7ec70566be3005c47c (diff)
downloadnumpy-9fb9288f461c7c7af9708f136fa4f29acdc734a8.tar.gz
Merge pull request #6910 from charris/add-64-bit-random-int
ENH: Add dtype argument to random.randint.
Diffstat (limited to 'doc')
-rw-r--r--doc/release/1.11.0-notes.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/release/1.11.0-notes.rst b/doc/release/1.11.0-notes.rst
index 7c078eed9..705ce73c1 100644
--- a/doc/release/1.11.0-notes.rst
+++ b/doc/release/1.11.0-notes.rst
@@ -86,6 +86,23 @@ New Features
the files can be specifies to be ``*.f90``. The ``verbose`` argument is
also activated, it was previously ignored.
+* A ``dtype`` parameter has been added to ``np.random.randint``
+ Random ndarrays of the following types can now be generated:
+
+ - np.bool,
+ - np.int8, np.uint8,
+ - np.int16, np.uint16,
+ - np.int32, np.uint32,
+ - np.int64, np.uint64,
+ - np.int_ (long), np.intp
+
+ The specification is by precision rather than by C type. Hence, on some
+ platforms np.int64 may be a `long` instead of `long long` even if the
+ specified dtype is `long long` because the two may have the same
+ precision. The resulting type depends on which c type numpy uses for the
+ given precision. The byteorder specification is also ignored, the
+ generated arrays are always in native byte order.
+
Improvements
============