v1

latestSwagger 2.0William Hill Online2026-07-14135.4 KB
Numbers

This method is used to generate random numbers for your app. Within the request, you can specify the lowest number, the highest number and the amount of numbers returned. There is also an option to generate a unique set of numbers with no repetition of the same numbers allowed in the return.

get/generate/integers

Query parameters

gameCodestring required

Identifier that indicates the game for which the RNG (Random Number Generator) has been used.

highestinteger required

Highest possible value to be returned.

lowestinteger required

Lowest possible value to be returned.

countinteger required

Number of values to be returned.

uniqueboolean required

Should the numbers returned be unique

Headers

apiKeystring required

A unique identifier of your application that is generated by the API portal and presented in the header.

apiSecretstring required

Another unique identifier for your application. The secret must never be sent over HTTP.

apiTicketstring

The authentication ticket associated with the user session. The getRandomNumbers method operates in two different ways – ‘Demo’ mode and ‘Live’ mode. In Demo mode, where no money is involved, the ticket is not required and can be used without it. In Live mode, when there is a financial outcome, the developer must supply a valid authentication and the ticket must be supplied. Important: The service should not be used in Live mode without a ticket.

Response

Success

randomNumbersinteger[]

An array of random numbers

sessionIdstring

This is either the IP address of the customer if not authenticated, or if used in ‘Live’ mode, when there is a financial outcome, it is the IP address and customerId for the account the ticket was generated for. This is used for audit purposes in case of financial query about a game outcome.

All 1 operations