Commit 9f7caeee authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 1bc933f2
...@@ -81,12 +81,16 @@ async function sleep(millis) { ...@@ -81,12 +81,16 @@ async function sleep(millis) {
return new Promise(resolve => setTimeout(resolve, millis)); return new Promise(resolve => setTimeout(resolve, millis));
} }
function randomInt(low, high) {
return Math.floor(Math.random() * (high - low) + low)
}
async function run() { async function run() {
coms = _.shuffle(coms) coms = _.shuffle(coms)
let com = _.uniqBy(coms, 'platform'); let com = _.uniqBy(coms, 'platform');
balance = lastBalance balance = lastBalance
arr = [] arr = []
resetDates() resetDates()
size=randomInt(25,100)
for (let i = 0; i < size; i++) { for (let i = 0; i < size; i++) {
// console.log(i,com.length) // console.log(i,com.length)
let closeDate = com[i].closeDate.split('_') let closeDate = com[i].closeDate.split('_')
......
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