Commit 129e3474 authored by Bryce Johnson's avatar Bryce Johnson

Improve random data config.

parent fafc15f0
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
//= subbable_resource //= subbable_resource
function getRandomInt(min, max) { function getRandomInt(min, max) {
const justReturnZero = Math.random() > .5; const justReturnZero = Math.random() > .8;
return justReturnZero ? 0 : Math.floor(Math.random() * (max - min + 1)) + min; return justReturnZero ? 0 : Math.floor(Math.random() * (max - min + 1)) + min;
} }
...@@ -41,8 +41,8 @@ function getRandomInt(min, max) { ...@@ -41,8 +41,8 @@ function getRandomInt(min, max) {
}, },
updateState(data) { updateState(data) {
/* MOCK */ /* MOCK */
data.time_estimate = getRandomInt(0, 10000) data.time_estimate = getRandomInt(0, 100000)
data.time_spent = getRandomInt(0, 10000); data.time_spent = getRandomInt(0, 100000);
this.issuable = data; this.issuable = data;
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment