Random Diceroll

Generates a random dice roll that can be modified.

Endpoint

  • URL: https://api.erensko.xyz/v1/random-diceroll

  • Method: GET

  • Description: Rolls a dice randomly with optional choices.

URL Parameters

Key
Value

sides (optional)

The number of sides on the die (default is 6 if not provided)

rolls (optional)

The number of times to roll the die (default is 1 if not provided).

modifier (optional)

The number that adjusts (modifies) the roll results by adding or subtracting. (default is 1).

Headers

Key
Value

Authorization

Your own personal API key, create one by clicking here. This is required.

Request Example (3 rolls)

GET https://api.erensko.xyz/v1/random-diceroll?rolls=3

Response Example (3 rolls)

{
  "rolls": [3, 5, 2, 6],
  "total": 16,
  "average": 4,
  "max": 6,
  "min": 2,
  "sides": 6,
  "modifier": 0,
  "rollsCount": 4
}

Last updated