Skip to content

Instantly share code, notes, and snippets.

@NuarkNoir
Created June 9, 2020 11:44
Show Gist options
  • Save NuarkNoir/509a72ed286da341d867ef9f11953e60 to your computer and use it in GitHub Desktop.
Save NuarkNoir/509a72ed286da341d867ef9f11953e60 to your computer and use it in GitHub Desktop.
(() => {
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