Skip to content

Latest commit

 

History

History

TP2.1 - Pseudorandom Generators

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

TP2.1 - Pseudorandom Generators

Study of pseudo-random numbers generators, then performing generation quality tests on them

Pseudorandom Generators Programmed

Middle Squared Method

Multiplicative Linear Congruential Generator (LCG)

Mixed Linear Congruential Generator (LCG)

Python's own Generator (Mersenne-Twister)

Tests Programmed

Goodness of Fit (Pearson - Chi Squared Approach)

Parity Test

Kolmogorov-Smirnov Test

Gaps Test

Example

Pseudorandom Numbers: 380

Console: Start output

output_start

Separated Scatterplots

scatter_separated

Simultaneous Scatterplots (Without MSM)

scatter_simultaneous

Separated Histograms

histograms_separated

Simultaneous Histograms (Without MSM)

histograms_simultaneous

Tests Results' summaring table

tests_results_summaring

Console: Pseudorandom arrays

firsts_randoms_msm firsts_randoms_mult_lcg firsts_randoms_mix_lcg firsts_randoms_pog_mt

Console: More detail of Tests

tests_msm tests_mult_lcg tests_mix_lcg tests_pog_mt

Console: Final output

output_end