Example Code

Generate random integers, sequences & strings by random.org

Code and Documents

Attachment

Random.org provides a service to generate random integers, sequences and strings  by atmospheric noise and is thus a true random generator; http://www.random.org/randomness/.

This VI makes a request to random.org to generate random integers, sequences and strings. It uses the API, http://www.random.org/clients/http/, from random.org to fetch the data.

Note however that one can not make unlimited calls to random.org, read here why; http://www.random.org/faq/#Q4.1. When requesting a random integer, sequence or string the VI checks the quota and when no quota is left, it returns an error.

random.org.png

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Now_With_Underscores
NI Employee (retired)
on

If you need a version that works for Mac OS or Linux (ok, technically Linux can use data sockets if you hack it hard enough), see here:

https://decibel.ni.com/content/docs/DOC-16419

-John Sullivan
Problem Solver
Contributors