I hereby claim:
- I am dkindler on github.
- I am dkind (https://keybase.io/dkind) on keybase.
- I have a public key whose fingerprint is E7EC 14F3 5028 B0A3 4C13 A2B3 F3DB 2DA1 84F3 BAF3
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
public static int randInt(int min, int max) { | |
Random rand = new Random(); | |
int randomNum = rand.nextInt((max - min) + 1) + min; | |
return randomNum; | |
} | |
private static String randomString(int len) { | |
Random rnd = new Random(); | |
String AB = "0123456789ABCDEFGHJKLMNPQRSTUVWXYZ"; |
public static void addRandomCars() { | |
System.out.println(""); | |
String[] makes = {"Honda", "Ferrari", "Mercedes", "Audi", "BMW", "Ford", "Accura", "Chevy"}; | |
String[] colors = {"Red", "Blue", "Orange", "Black", "White"}; | |
String[] models = {"Spider", "F150", "X3", "X4", "X5", "Bolt", "Ryder", "FastLane"}; | |
for (int i = 0; i < 10; i++) { | |
Car c = new Car(); | |
c.setVin(randomString(17).toLowerCase()); | |
c.setMake(makes[randInt(0, makes.length - 1)]); |
lb $v0, $t9 # Set value of $v1 to be $t9 | |
srl $v0, $v0, 11 # shift right 11 bits | |
andi $v0, $v0, 1 # get value of last bit |