MCPcopy
hub / github.com/mickhansen/graphql-sequelize / randomInt

Function randomInt

test/benchmark/seed.js:13–16  ·  view source on GitHub ↗
(max)

Source from the content-addressed store, hash-verified

11const NO_PROJECTS = 10;
12
13function randomInt(max) {
14 const min = 1;
15 return Math.floor(Math.random() * (max - min + 1)) + min;
16}
17
18return sequelize.sync({ force: true, logging: console.log }).then(function () {
19 let users = [];

Callers 1

seed.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected