random(?)

Alejandros Diamandidis adia at egnatia.ee.auth.gr
Thu Feb 18 10:27:24 EET 1999


ricudis at paiko.gr (Christos Ricudis) wrote:
>Poio einai to ma8hma? Na xrhsimopoieite PANTOTE dikous sas random number
>generators, parmenoys kyriws apo th bibliografia (deite ton trito tomo toy

Den jerw ti ginetai sth libc 5, alla sthn glibc 2.1 sthn arxh tou
random.c leei ta ejhs:

/* An improved random number generation package.
...
   By default, the package runs with 128 bytes of state
   information and generates far better random numbers than a linear
   congruential generator.  
...   
   In this approach, the least significant bit of all
   the numbers in the state table will act as a linear feedback shift register,
   and will have period 2^deg - 1 (where deg is the degree of the polynomial
   being used, assuming that the polynomial is irreducible and primitive).

Ta pragmata se ayth thn periptwsh fainontai poly kalytera apo thn
katastash pou perigrafeis sto (poly katatopistiko) mhnyma sou. Bebaia
gia na douleuoun ta programmata sou pantou, kai me ton idio tropo,
mallon oi symboules sou einai svstes.

-- 
Alejandros Diamandidis * adia at egnatia.ee.auth.gr
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list