@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
26 lines • 793 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../utils");
/**
* @action Random Number
* @section Actions > Scripting > Maths
* @icon Calculator
*
* Passes a random number between the given minimum and maximum to the next action. The minimum and maximum numbers are included as possible results.
*
* ```js
* randomNumber({
* minimum: 0,
* maximum: 100,
* });
* ```
*/
const randomNumber = ({ minimum = 0, maximum = 100, }) => ({
WFWorkflowActionIdentifier: 'is.workflow.actions.number.random',
WFWorkflowActionParameters: {
WFRandomNumberMinimum: minimum,
WFRandomNumberMaximum: maximum,
},
});
exports.default = utils_1.withActionOutput(randomNumber);
//# sourceMappingURL=randomNumber.js.map