random number

This commit is contained in:
Arionum
2018-05-10 02:06:32 +03:00
parent 82ef1e9d10
commit 0e561e5407
5 changed files with 152 additions and 5 deletions

View File

@@ -420,7 +420,7 @@ define({ "api": [
"group": "Success 200",
"type": "numeric",
"optional": false,
"field": "confirmation",
"field": "confirmations",
"description": "<p>Number of confirmations</p>"
},
{
@@ -771,7 +771,7 @@ define({ "api": [
"group": "Success 200",
"type": "numeric",
"optional": false,
"field": "confirmations",
"field": "confirmation",
"description": "<p>Number of confirmations</p>"
},
{
@@ -889,6 +889,64 @@ define({ "api": [
"filename": "./api.php",
"groupTitle": "API"
},
{
"type": "get",
"url": "/api.php?q=randomNumber",
"title": "16. randomNumber",
"name": "randomNumber",
"group": "API",
"description": "<p>Returns a random number based on an ARO block id.</p>",
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "numeric",
"optional": false,
"field": "height",
"description": "<p>The height of the block on which the random number will be based on (should be a future block when starting)</p>"
},
{
"group": "Parameter",
"type": "numeric",
"optional": false,
"field": "min",
"description": "<p>Minimum number (default 1)</p>"
},
{
"group": "Parameter",
"type": "numeric",
"optional": false,
"field": "max",
"description": "<p>Maximum number</p>"
},
{
"group": "Parameter",
"type": "string",
"optional": false,
"field": "seed",
"description": "<p>A seed to generate different numbers for each use cases.</p>"
}
]
}
},
"success": {
"fields": {
"Success 200": [
{
"group": "Success 200",
"type": "numeric",
"optional": false,
"field": "data",
"description": "<p>The random number</p>"
}
]
}
},
"version": "0.0.0",
"filename": "./api.php",
"groupTitle": "API"
},
{
"type": "get",
"url": "/api.php?q=send",