A Random.org API key.
A Random.org credentials object.
Sign the reponses from the Random.org API when using an API key.
A Random.org API key.
A Random.org credentials object.
Sign the reponses from the Random.org API when using an API key.
If authenticated via credentials.
If authenticated via an API key.
Generates Binary Large OBjects (BLOBs) containing true random data.
Generate true random decimal fractions from a uniform distribution across the [0,1] interval with a user-defined number of decimal places.
Generate true random numbers from a Gaussian distribution (also known as a normal distribution). The form uses a Box-Muller Transform to generate the Gaussian distribution from uniformly distributed numbers.
Generate true random integers within a user-defined range.
Throw an error if not authenticated via an API key.
Throw an error if not authenticated via some credentials.
Generate uniform or multiform sequences of true random integers within user-defined ranges. Uniform sequences all have the same general form (length, range, replacement and base) whereas these characteristics can vary for multiform sequences.
This method generates true random strings.
Generate version 4 true random Universally Unique IDentifiers (UUIDs) in accordance with section 4.4 of RFC 4122.
The methods described here allows RANDOM.ORG account holders to delegate use of services to other RANDOM.ORG account holders. A ‘delegation’ is a relationship between two RANDOM.ORG accounts in which one (the delegator) gives another (the delegate) access to use a particular service (e.g., the Third-Party Draw Service) on behalf of the delegator. The delegator can later remove the delegation if it wishes.
Create a delegation of a particular service between two RANDOM.ORG account holders.
List all delegations in which the user acts as delegator or delegate.
Allow a delegator to remove a delegation, effectively revoking rights previously granted with the add method.
Register a handler that will be used to deliver notifications about the creation and deletion of delegations in which the account holder is delegate.
Remove the handler that is being used to deliver notifications about the creation and deletion of delegations in which the account holder is delegate.
Register a handler that will be used to deliver notifications about the creation and deletion of delegations in which the account holder is delegate.
The Third-Party Draw Service allows clients to hold ‘drawings’ (US English) or ‘draws’ (UK, Irish and Australian English) in which a number of winners are selected from a pool of entries.
Obtain information about a completed drawing, subject to access control of the drawing's privacy settings.
Hold a drawing in one single operation. All information required for the drawing is passed as parameters. For this reason, the client must have collected all the entries from which the winner(s) will be selected before the method is invoked. Once the invocation is made, it is not possible to add entries or to delete or modify the drawing.
This method lets a RANDOM.ORG account holder list all the drawings in their account. Your client must set the method property of its JSON-RPC request object to listDraws.
This API gives clients access to RANDOM.ORG's Multi-Round Giveaway Service. Ideally suited to video streaming in real-time, the service randomizes your list of up to 3,000 participants in up to 30 rounds. The client first creates the giveaway and then runs the rounds one at a time. In the final round, the service generates a verification code, valid for one month, which proves your giveaway wasn't rigged.
This method creates a new giveaway but does not yet run the rounds.
This method runs a single round of a giveaway previously created with the begin method.
This method obtains the details of a giveaway. The giveaway must have been created with the being method and can be either in completed or not completed state. The records of giveaways are public, so no authentication is required to use this method.
This method lists all non-expired giveaways for a given RANDOM.ORG account.
Generated using TypeDoc
Random.org API client library for JavaScript.