
ĭuring your very first connection to the site (which is "authenticated" through your ip address), you are attributed a quota of 1 000 000 bits. The services offered by are mostly free however, you must obey to a certain number of usage rules that are described here. The current version of the RandomOrg class uses the old API and does not require you to register on the site. You have registered yourself in this case, you can use the JSON/RPC API (also called the new API), and your credentials will be used by the site to enforce the quota restrictions. Your current IP address is used by the site to enforce the quota restrictions. This is described as the old API on the site. In this case, you can issue simple HTTP requests to retrieve data. Data can be fetched by using one of the following methods : The site offers an API to freely retrieve random values, with quota restrictions. The consecutive values that you will be able to retrieve from the site through this class have clearly no mathematical relashionship between them. This is where the * website (and theRandomOrg PHP class) enter into action.
Random org code#
Of course, these are handy methods that can help you to test your code with some "random" data, but they are subject to caution when talking about cryptography aspects or even password generators, because they are deterministic.
Random org generator#
I'm not aware of any pseudo-random number generator that could return you the same consecutive value more than once. Of course, as you might guess, you cannot obtain true random numbers from deterministic methods. The seed (the initial value used for the computation of the first pseudo-random number) has a direct influence on the order of the results. To sum up a little bit, if you call a pseudo-number generator function 100 times to return you a number between 1 and 100, then you will obtain numbers between 1 and 100, in an order that appears to be random. Pseudo-random generators are usually implemented by a distribution function with a formula that uses prime numbers. This site allows you to retrieve true random numbers, which are different from the ones returned by pseudo-random generators such as the builtin rand() and mt_rand() PHP functions. The RandomOrg class encapsulates access to the web site ( ).
