Official Library: https://github.com/RandomOrg/JSON-RPC-Java
Random generator via atmospheric noise Random.org
Current version: 0.1
Integer Generator
// generate two 6-side dice rolls
IntegerGenerator ig = new IntegerGenerator();
ArrayList<Integer> numbers = ig.generate(1,6,2)
Sequence Generator
// shuffle 52-card deck
SequenceGenerator sg = new SequenceGenerator();
ArrayList<Integer> numbers = sg.generate(1, 52);
String Generator
// new password alphanumeric 12 chars
StringGenerator strg = new StringGenerator();
ArrayList<String> numbers = strg.generate(12, 1, true, true, true, true);
Quota Checker
// check your remaining quota
QuotaChecker qc = new QuotaChecker();
long quota = qc.quota();
All work with HTTP GET API happens in HTTPUtils util class. As we do not know
return type for concrete GET-request yet we return ArrayList<String>
which
further can be processed by responsible methods.
All successful requests have response code 200. In case server returns 503 response code, IOException is thrown and should be handled on client side.
gradle build