Главная страница


ru.algorithms

 
 - RU.ALGORITHMS ----------------------------------------------------------------
 From : Vladimir Kuznetsov                   2:5010/126.91  03 Jul 2001  20:22:44
 To : Sandro (Vladimir Uryvaev)
 Subject : Re: RANDOM, вопрос созрел.
 -------------------------------------------------------------------------------- 
 
  In a message dated 28 Jun 01 you wrote to All:
 
   Sa> если, например, внутри ГПСЧ стоит 16разрядный SEED, то не позже чем
   Sa> после S=2^16 последовательность повторится.
  
    Это верно только для генераторов типа x1 = (a + x0*b)%c
    Hо в природе существуют и более другие генераторы. Вот для примера:
    
 ----- cut here -----
 
  This random number generator originally appeared in "Toward a Universal
  Random Number Generator" by George Marsaglia and Arif Zaman.
  Florida State University Report: FSU-SCRI-87-50 (1987)
 
  It was later modified by F. James and published in "A Review of Pseudo-
  random Number Generators"
 
  THIS IS THE BEST KNOWN RANDOM NUMBER GENERATOR AVAILABLE.
        (However, a newly discovered technique can yield
    a period of 10^600. But that is still in the development stage.)
 
  It passes ALL of the tests for random number generators and has a period
    of 2^144, is completely portable (gives bit identical results on all
    machines with at least 24-bit mantissas in the floating point
    representation).
 
  The algorithm is a combination of a Fibonacci sequence (with lags of 97
    and 33, and operation "subtraction plus one, modulo one") and an
    "arithmetic sequence" (using subtraction).
  ========================================================================
  This C language version was written by Jim Butler, and was based on a
  FORTRAN program posted by David LaSalle of Florida State University.
 
 ----- and here -----
 
    Так, что для 24 битного числа с легкостью получаются последовательности
    с периодом много больше, чем его размер. Вот.
 
 Bye!
 Your wicked friend - Mista K.
 --- Mail Manager 1.22x *UNREG*
  * Origin: Da Rubber Jungle (2:5010/126.91@fidonet)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 RANDOM, вопрос созрел.   Igor Dolgov   13 Jun 2001 23:17:23 
 RANDOM, вопрос созрел.   Michael Bolotnicov   26 Jun 2001 02:20:00 
 Re: RANDOM, вопрос созрел.    Sandro (Vladimir Uryvaev)   28 Jun 2001 20:18:25 
 RANDOM, вопрос созрел.   Igor Dolgov   01 Jul 2001 02:05:27 
 Re: RANDOM, вопрос созрел.   Vladimir Kuznetsov   03 Jul 2001 20:22:44 
Архивное /ru.algorithms/17471EA988014.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional