Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.random.get_state

numpy.random.get_state()

Return a tuple representing the internal state of the generator.

For more details, seeset_state.

Returns:

out : tuple(str, ndarray of 624 uints, int, int, float)

The returned tuple has the following items:

  1. the string ‘MT19937’.
  2. a 1-D array of 624 unsigned integer keys.
  3. an integerpos.
  4. an integerhas_gauss.
  5. a floatcached_gaussian.

See also

set_state

Notes

set_state andget_state are not needed to work with any of therandom distributions in NumPy. If the internal state is manually altered,the user should know exactly what he/she is doing.

Previous topic

numpy.random.seed

Next topic

numpy.random.set_state

  • © Copyright 2008-2009, The Scipy community.
  • Last updated on Jun 10, 2017.
  • Created usingSphinx 1.5.3.

[8]ページ先頭

©2009-2025 Movatter.jp