Javascript examples

For web request we support the JSON-P technique in order to overcome the cross-domain restriction of usual XMLHttpRequest.

Get 10 random numbers with JQuery

$.getJSON('http://random.openqu.org/api/rand?size=10&callback=?', function (data) {
  console.log(data['result']);
});

Quantum Chooser

Our Live QRNG interacts with the API via Javscript.