An open API service indexing awesome lists of open source software.

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

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