Skip to content

Instantly share code, notes, and snippets.

@pajuey
pajuey / gist:4734529
Created February 7, 2013 21:44
Bored, practicing java. Enter word, randomizes a bunch of chars to match word. Prints probability. I dunno if i'm using random in the right way, but it works, yet the probability math doesn't seem right, cause chances seem so infinitesimally small in getting a match on the word.
/**
* WordProbability.java
* Created with IntelliJ IDEA.
* User: stev
* Date: 2/7/13
*/
import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;
@pajuey
pajuey / gist:4734502
Created February 7, 2013 21:40
Bored, practicing java. I think i'm using random right to scramble letters, I don't think my probability math is right tho.
/**
* WordProbability.java
* Created with IntelliJ IDEA.
* User: stev
* Date: 2/7/13
*/
import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;
/**
* GCD.java
* Steven Pajuelo
* spajuelo
* pa3
* Make a GCD to find GCD for two integer types, which neither are negative or of another type.
*/
import java.util.Scanner;
/**
* GCD.java
* Steven Pajuelo
* spajuelo
* pa3
* Make a GCD to find GCD for two integer types, which neither are negative or of another type.
*/
import java.util.Scanner;