Created
June 9, 2020 11:44
-
-
Save NuarkNoir/509a72ed286da341d867ef9f11953e60 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
let titles = [`test`, `"test whitespace"`, `"more whitespace"`, `no_whitespace`, `another`, `test`]; | |
let types = [`childish`, `popular`, `sci-pop`, `scientific`,]; | |
let getTitle = () => { | |
return titles[Math.floor(Math.random() * titles.length)]; | |
} | |
let getCost = () => { | |
return -3 + Math.floor(Math.random() * 104); | |
} | |
let getAmount = () => { | |
return -3 + Math.floor(Math.random() * 104); | |
} | |
let getType = () => { | |
return types[Math.floor(Math.random() * types.length)]; | |
} | |
let out = ""; | |
for (let i = 0; i < 60; i++) { | |
out += `${getTitle()} ${getCost()} ${getAmount()} ${getType()}\n`; | |
} | |
return out.trim(); | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment