Roll Dice

Use this endpoint to roll a die, several dice can be rolled at a time. Only 6-sided die can be rolled.

The random result object added properties

Properties

  • Name
    dice
    Type
    array
    Description
    Rolled dice

GET /api/random/dice

Roll Dice

This endpoint allows you to roll dice, several dice can be rolled at a time.

Parameters

  • Name
    n
    Type
    integer
    Description
    Number of dice to roll. Default is 1.

Request

GET
/api/random/dice
 curl -G https://qrandom.io/api/random/dice 
 -d n=10

Response

{
    "message": "Request: Amount: 10, ResultHash: 2f412a85fe302481aced3e874d3473b3ea7b09cc8ff3b0cebdfa812f2bb4c800, Timestamp: 1676109782.532113",
    "id": "QkUwQTkzMTktNEU3OS00RUZBLTk1M0EtMUJFOTM3NjJCMjhB",
    "dice": [
        1,
        5,
        5,
        4,
        2,
        6,
        2,
        5,
        1,
        1
    ],
    "signature": "OQKn/HwzbrQnSgojDLywHtIKNNLo1jZvtgzNWu07XnqC9c+ua0xoQ6mDNivFCIvMKtcKqV9P9jauESWrzhxussDnMZxbLPrCr8iIqk/dpru5Z41h1BFzGu2zDJQV5IwusVqEk5mInn1rhIacsbOp/pz3scYWaLhJlwbEkRNpBxmHp5WbukPvfQ62OW5cMlzWEJNI1rz6fnIew+hEsEoCIqVWH9zVcaiUIHBVLe3CqVIbosfp1pYlRdv6sKu2IZxvIYcH/ntXftRJW0chBdtSr+5h/WoHd3h9/9xpfT3R0Wmyc9c+1TD8IquGKfpG9N1rnAHgY9W85MnTveQP+xhPdPAcgdI/JAvTI29MW7yWapDOBImnLY/JpNg0tX6Kh7vyYKW0B+pbT4OsDD5qhEpIqv3+YGEVWefUtfZpiWaGc9nCpsoV3TsjGqThKV1f1sb9s8mQeT55qnGcx9t74bO02PYfFzNbW9RCGEcIxvYzYUKk2bSrfwsnLDR1RiIH1iBzrzCGIYpUjXUlHLax+Wp7lbuhq184qqVd/m6biYXRbeRpSwsrUr9ScTQXLWGdMI1OeVWxSdJpcZdToN34+7akHLx8OJTQPd2Ie1vT88rROCoVh9uas5FDTCnvTmpPSMUrzQyEbtceixBkkEP2mGt8Xo+neP/ba3W9MZR4eZ4cwy/Z5zXPrSlSP3DSTNCbeDp/CKNXI0sy38ohjLx3Gz2C0+qmGnb8WaJSgx6G6mDvgrvHYx3JZY0kRbl3bhbnqxCC4+4bwi1homgW5Nk9IdN/U6O5YZpz0XHiYn48tNUzlC1rzxEU3yCDQ5k12FG/Ne7XpYLmQZROwlblbSi+GA5EpBu7IxON3ePsfV7e/luWysA=",
    "resultType": "dice",
    "elapsedTime": 0.0616,
    "timestamp": "2023-02-11T10:03:02Z"
}