A https://random.org client library. The randomness comes from atmospheric noise, which for many purposes is better than the pseudo-random number algorithms typically used in computer programs.
Everything is implemented. Note, that the random.org
service API is at beta stage of development,
however the library will try to be up-to-date.
The documentation which may help you using this library.
Sync
and Send
).reqwest
crate is used for performing requestschrono
for datesserde
for serialization and deserializationStart by creating Random
instance and perform needed operations after.
```rust,no_run extern crate randomorg;
fn main() {
use randomorg::Random;
let r = Random::new("API KEY HERE");
// A method-call way:
println!("Result: {:?}", r.generateintegers(-100, 100, 15, true));
// A lazy request builder way:
let randomdata = r.requestintegers().min(0).max(100).limit(5).collect::
This project is licensed under the MIT license.