CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
random.js17 linesDownload Raw Back to math
1'use strict';2 3Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });4 5function random(minimum, maximum) {6    if (maximum == null) {7        maximum = minimum;8        minimum = 0;9    }10    if (minimum >= maximum) {11        throw new Error('Invalid input: The maximum value must be greater than the minimum value.');12    }13    return Math.random() * (maximum - minimum) + minimum;14}15 16exports.random = random;17 
basant307/AI_Governance_Project · CoolFace