Added 'XKCD Random Number' operation

This commit is contained in:
n1474335 2018-02-13 15:05:55 +00:00
parent f6b68f9880
commit 8518fa67f2
7 changed files with 152 additions and 87 deletions

26
src/core/operations/XKCD.js Executable file
View file

@ -0,0 +1,26 @@
/**
* XKCD operations.
*
* @author n1474335 [n1474335@gmail.com]
* @copyright Crown Copyright 2018
* @license Apache-2.0
*
* @namespace
*/
const XKCD = {
/**
* XKCD Random Number operation.
*
* @param {string} input
* @param {Object[]} args
* @returns {number}
*/
runRandomNumber: function(input, args) {
return 4; // chosen by fair dice roll.
// guaranteed to be random.
},
};
export default XKCD;