Update:There is a new version of the app. Click on the picture below:
Depending on whether or not the device is connected to the internet, Random generates Pseudo random and Real Random (using Random.org) numbers. Users can simulate a die roll, a coin flip or use A DIY random number generator. A string randomiser option, which randomises string input, is also available.
Checking whether the device is connected to the internet:
It is also necessary to check if the device can actually connect to Random.org. This is to take into consideration of the case where Random.org servers might be down occasionally, or, the device is connecting to a router with no DNS and/or IP set up.
Getting Real random from Random.org:
The following lines of code is for the DIY option. Everything else uses a simple modification. For example, the min and max for the Roll a Die option would be 1 and 6 respectively.