Open Trinitui opened 3 years ago
Or this?
function scrambler(bub,gex) {
let r1 = bub.slice(bub.length - bub.length/Math.floor(Math.random()*10))
let r2 = gex.slice(gex.length - gex.length/Math.floor(Math.random()*10))
let results = r1+r2
return results
}
let resultArr = []
function generatebulkscramble() {
let rand1 = Math.floor(Math.random()*100)
let rand2 = Math.floor(Math.random()*100)
rand2 < rand1 ? rand2 = rand1+20 : rand2 = rand2
for (var i=rand1;i<rand2;i++) {
resultArr.push(scrambler(bubsyArr[i],gexArr[i]))
}
}
console.log("---------------------")
console.log("---------------------")
console.log(generatebulkscramble())
console.log(resultArr)
I have no good ideas here