[Python-checkins] python/nondist/sandbox/twister NEWS,NONE,1.1

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
2002年12月23日 21:17:13 -0800


Update of /cvsroot/python/python/nondist/sandbox/twister
In directory sc8-pr-cvs1:/tmp/cvs-serv30141
Added Files:
	NEWS 
Log Message:
Draft news item.
--- NEW FILE: NEWS ---
- random.random() now uses a new core generator. The Mersenne Twister
 algorithm is implemented in C (in the module _random), is threadsafe,
 is faster than the previous generator, has a much longer period
 (2**19937-1), and creates random floats to a full 53-bit precision.
 The random.jumpahead(n) method has different semantics for the new
 generator. Instead of jumping n steps ahead, it uses n and the
 existing state to create a new state. This means that jumpahead()
 continues to support multi-threaded code needing generators of
 non-overlapping sequences. However, it will break code which relies
 on jumpahead moving a specific number of steps forward.
 The attributes random.whseed and random.__whseed have no meaning for
 the new generator. Code using these attributes should switch to a
 new class, random.WichmannHill which is provided for backward
 compatability and to make an alternate generator available.

AltStyle によって変換されたページ (->オリジナル) /