https://github.com/mannasoumya/ralota
A repo for random number generation algorithms
https://github.com/mannasoumya/ralota
pseudo-random pseudo-random-generator pseudorandom random random-generation random-number-generators randomization randomizer
Last synced: about 1 year ago
JSON representation
A repo for random number generation algorithms
- Host: GitHub
- URL: https://github.com/mannasoumya/ralota
- Owner: mannasoumya
- License: mit
- Created: 2021-11-29T13:13:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-09T12:27:11.000Z (almost 4 years ago)
- Last Synced: 2025-01-23T01:13:42.773Z (about 1 year ago)
- Topics: pseudo-random, pseudo-random-generator, pseudorandom, random, random-generation, random-number-generators, randomization, randomizer
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://www.python.org/))
```console
$ python pseudo_random_num.py # This is using WichMann_Hill
Usage: python .\pseudo_random_num.py
$ python pseudo_random_num.py 10 100 5
19
31
40
18
12
```
#### MRG32k3a (in [Julia](https://julialang.org/))
```console
$ julia .\MRG32k3a.jl
Usage: julia .\MRG32k3a.jl
$ julia .\MRG32k3a.jl 10 100 5
50
34
40
78
14
```
#### Xorshift (in [Golang](https://go.dev/))
```console
$ go run .\xorshift.go
Usage: go run xorshift.go
exit status 1
$ go run .\xorshift.go 10 100 5
96
40
44
81
90
```
#### Park Miller (in [Nim](https://nim-lang.org/))
```console
$ nim c .\Park_Miller.nim
$ .\Park_Miller.exe
Usage: 'Park_Miller.exe'
$ .\Park_Miller.exe 100
```
#### Permuted congruential generator (in [C](https://www.open-std.org/jtc1/sc22/wg14/))
```console
$ gcc permuted_congruential_generator.c -o permuted_congruential_generator
$ ./permuted_congruential_generator
```
## References
- https://www.math.arizona.edu/~tgk/mc/book_chap3.pdf
- https://en.wikipedia.org/wiki/Random_number_generation
- https://en.wikipedia.org/wiki/Wichmann%E2%80%93Hill
- https://en.wikipedia.org/wiki/Linear_congruential_generator
- https://spec.oneapi.io/versions/latest/elements/oneMKL/source/domains/rng/mkl-rng-mrg32k3a.html
- https://www.jstatsoft.org/article/download/v008i14/916
- https://en.wikipedia.org/wiki/Xorshift
- http://www.thesalmons.org/john/random123/papers/random123sc11.pdf
- https://en.wikipedia.org/wiki/Lehmer_random_number_generator
- https://en.wikipedia.org/wiki/Permuted_congruential_generator