Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Based on an old piece of paper my friend Chris wrote on back in our CMSEC days.
- const first = [
- "hydraulic",
- "parallel",
- "heat-sensitive",
- "dielectric",
- "auto",
- "fiber-optic",
- "integrated",
- "digital",
- "micro"
- ]
- const second = [
- "holographic",
- "sequence",
- "pressurized",
- "aerosol",
- "bimetal",
- "servo",
- "wire",
- "fluid",
- "lubricant"
- ]
- const third = [
- "processor",
- "sender",
- "receiver",
- "sensor",
- "shaft",
- "display",
- "wafer",
- "feeder",
- "linkage",
- "separator"
- ]
- const randomInt = (min, max) => Math.floor(Math.random() * (max - min)) + min
- const randomEntry = (array) => array[randomInt(0, array.length)]
- const createTechnoThing = () => [first, second, third].map(x => randomEntry(x)).join(' ')
- const numberOfThings = process.argv[2] || 1
- for (let i = 0; i < numberOfThings; i++) {
- console.log(`[${i}]: ${createTechnoThing()}`)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement