Skip to content

mannasoumya/RALOTA

Repository files navigation

RALOTA : Repository about Random Number Generator Algorithms

this name has nothing to do with the algorithms (actually it is also randomly generated through a code)

Quick Start

WichMann Hill (in Python)

$ python pseudo_random_num.py  # This is using WichMann_Hill
Usage: python .\pseudo_random_num.py <lower-limit> <upper-limit> <how-many>
$ python pseudo_random_num.py 10 100 5
19
31
40
18
12

MRG32k3a (in Julia)

$ julia .\MRG32k3a.jl
Usage: julia .\MRG32k3a.jl <lower-limit> <upper-limit> <how-many>
$ julia .\MRG32k3a.jl 10 100 5
50
34
40
78
14

Xorshift (in Golang)

$ go run .\xorshift.go
Usage: go run xorshift.go <lower-limit> <upper-limit> <how-many>
exit status 1
$ go run .\xorshift.go 10 100 5
96
40
44
81
90

Park Miller (in Nim)

$ nim c .\Park_Miller.nim 
$ .\Park_Miller.exe 

Usage: 'Park_Miller.exe' <how-many>

$ .\Park_Miller.exe 100

Permuted congruential generator (in C)

$ gcc permuted_congruential_generator.c -o permuted_congruential_generator
$ ./permuted_congruential_generator

References