{"version":3,"file":"rand.mjs","sources":["../../../../packages/utils/rand.ts"],"sourcesContent":["/**\n * Generate random number in range [0, 1000]\n * Maybe replace with [uuid](https://www.npmjs.com/package/uuid)\n */\nexport const generateId = (): number => Math.floor(Math.random() * 10000)\n\n/**\n * Generating a random int in range (0, max - 1)\n * @param max {number}\n */\nexport const getRandomInt = (max: number) =>\n  Math.floor(Math.random() * Math.floor(max))\n"],"names":[],"mappings":"AAIO,MAAM,aAAa,MAAc,IAAA,CAAK,MAAM,IAAK,CAAA,MAAA,KAAW,GAAK,EAAA;AAM3D,MAAA,YAAA,GAAe,CAAC,GAAA,KAC3B,IAAK,CAAA,KAAA,CAAM,IAAK,CAAA,MAAA,EAAW,GAAA,IAAA,CAAK,KAAM,CAAA,GAAG,CAAC;;;;"}