Skip to content

Instantly share code, notes, and snippets.

@wbsimms wbsimms/Program.java
Last active Aug 29, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.