Skip to content

Instantly share code, notes, and snippets.

@wbsimms
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wbsimms/c0a6c6bb0df4640ca5ab to your computer and use it in GitHub Desktop.
Save wbsimms/c0a6c6bb0df4640ca5ab to your computer and use it in GitHub Desktop.
Intellectual Façade Generator
deep
learning
machine
artificial
intelligence
synergy
proactive
predictive
analytics
intelligence
big
agile
velocity
parsing
formalized
targeted
package com.wbsimms.bullshitgenerator;
import java.io.*;
import java.util.*;
/**
*
* @author Wm.Barrett
*/
public class Program {
static String facadeSource = "C:\\Users\\Wm.Barrett\\Desktop\\facade.txt";
static ArrayList<String> terms = new ArrayList<String>();
public static void main(String[] args) throws Exception {
File f = new File(bullshitSource);
try (BufferedReader br = new BufferedReader(new FileReader(f))) {
String line;
while ((line = br.readLine()) != null) {
terms.add(line);
}
}
long seed = System.nanoTime();
Collections.shuffle(terms,new Random(seed));
Random rand = new Random(seed);
int min = 2;
int max = 5;
int termCount = rand.nextInt((max-min)+1) + min;
for (int i = 0; i<=termCount; i++) {
System.out.print(terms.get(i) + " ");
}
System.out.println();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment