I get bored sometimes...
This is the static archive of the Massassi Forums. The forums are
closed indefinitely. Thanks for all the memories!
You can also download
Super Old Archived Message Boards
from when Massassi first started.
"View" counts are as of the day the forums were archived, and will no longer increase.
public String key(){ String n1 = ""; String key = ""; for(int index = 0;index < 19;index++){ int character = rand.nextInt(15); if(character == 0){ n1 = "A"; } if(character == 10){ n1 = "B"; } if(character == 11){ n1 = "C"; } if(character == 12){ n1 = "D"; } if(character == 13){ n1 = "E"; } if(character == 14){ n1 = "F"; } if(character == 1){ n1 = "1"; } if(character == 2){ n1 = "2"; } if(character == 3){ n1 = "3"; } if(character == 4){ n1 = "4"; } if(character == 5){ n1 = "5"; } if(character == 6){ n1 = "6"; } if(character == 7){ n1 = "7"; } if(character == 8){ n1 = "8"; } if(character == 9){ n1 = "9"; } if(character == 15){ n1 = "0"; } if(index == 4||index == 9||index == 14){ n1 = "-"; } key += n1; } return (String) key; }
public String key2() { String n1 = ""; String key = ""; for (int index = 1; index < 20; index++) { int character = rand.nextInt(15); if (index % 5 == 0) n1 = "-"; else n1 = Integer.toHexString(character); key += n1; } return key; }
public String key3() { String k = ""; char c; for (int i = 1; i < 20; i++) { if (i % 5 == 0) c = '-'; else { c = (char)(rand.nextInt(15) + 48); if (c > 57) c += 8; } k += c; } return k; }