A toolbox that fetches true random numbers from Random.org!
The package is currently not registered. So open up a Julia 1.1+ repl and enter the pkg mode.
] add https://github.com/Sov-trotter/Randomorg_API.jlusing Randomorg_APInHow many random integers you need. Must be within the [1,1e4] range.minThe lower boundary for the range from which the random numbers will be picked. Must be within the [-1e9,1e9] range.maxThe upper boundary for the range from which the random numbers will be picked. Must be within the [-1e9,1e9] range.replacementSpecifies whether the random numbers should be picked with replacement. The default (true) will cause the numbers to be picked with replacement, i.e., the resulting numbers may contain duplicate values. If you want the numbers picked to be unique set this value tofalse.
This method generates uniform or multiform sequences of true random integers within user-defined ranges.
nAn integer specifying the number of sequences requested. Must be within the [1,1000] range.lengthThis parameter specifies the lengths of the sequences requested.
1) For uniform sequences, length must be an integer in the [1,10000] range.
2) For multiform sequences, length can be an array with n integers, each specifying the length of the sequence.
3) In this case, each value in length must be within the [1,10000] range and the total sum of all the lengths must be in the [1,10000] range.minThis parameter specifies the lower boundaries of the sequences requested.
1) For uniform sequences, min must be an integer in the [-1000000000,1000000000] range.
2) For multiform sequences, min can be an array with n integers, each specifying the lower boundary of the sequence identified by its index.
3) In this case, each value in min must be within the [-1000000000,1000000000] range.maxThis parameter specifies the upper boundaries of the sequences requested.
1) For uniform sequences, max must be an integer in the [-1000000000,1000000000] range. 2) For multiform sequences, max can be an array with n integers, each specifying the upper boundary of the sequence identified by its index. 3) In this case, each value in max must be within the [-1000000000,1000000000] range.replacementSpecifies whether the random numbers should be picked with replacement. The default (true) will cause the numbers to be picked with replacement,
i.e., the resulting numbers may contain duplicate values. If you want the numbers picked to be unique set this value tofalse.
This method generates true random decimal fractions from a uniform distribution across the [0,1] interval with a user-defined number of decimal places.
nHow many random decimal fractions you need. Must be within the [1,10000] range.decimalPlacesThe number of decimal places to use. Must be within the [1,14] range.
This method generates true random numbers from a Gaussian distribution (also known as a normal distribution).
(The form uses a Box-Muller Transform to generate the Gaussian distribution from uniformly distributed numbers)
nHow many random numbers you need. Must be within the [1,10000] range.meanThe distribution's mean. Must be within the [-1000000,1000000] range.standardDeviationThe distribution's standard deviation. Must be within the [-1000000,1000000] range.significantDigitsThe number of significant digits to use. Must be within the [2,14] range.
nHow many random strings you need. Must be within the [1,10000] range.lengthThe length of each string. Must be within the [1,32] range. All strings will be of the same length.charactersA string that contains the set of characters that are allowed to occur in the random strings. The maximum number of characters is128.replacementSpecifies whether the random numbers should be picked with replacement. The default (true) will cause the numbers to be picked with replacement,
i.e., the resulting numbers may contain duplicate values. If you want the numbers picked to be unique set this value tofalse.
This method generates version 4 true random Universally Unique IDentifiers (UUIDs) in accordance with section 4.4 of RFC 4122.
nHow many random UUIDs you need. Must be within the [1,1000] range.
nHow many random blobs you need. Must be within the [1,100] range.sizeThe size of each blob, measured in bits. Must be within the [1,1048576] range and must be divisible by 8. The total size of all blobs requested must not exceed 1,048,576 bits (128 KiB).formatSpecifies the format in which the blobs will be returned. Values allowed arebase64andhex.
This software was developed as part of academic research. If you would like to help support it, please star the repository. If you use this software as part of your research, teaching, or other activities, we would be grateful if you could cite the following:
@misc{sharma2019randomorg_apijl,
title={{Randomorg_API.jl: A random.org client written in Julia}},
author={Arsh Sharma},
year={2019}
}