Skip to content

Instantly share code, notes, and snippets.

@ROBOKiTTY
Created July 18, 2012 14:25
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 ROBOKiTTY/3136492 to your computer and use it in GitHub Desktop.
Save ROBOKiTTY/3136492 to your computer and use it in GitHub Desktop.
LoremIpsum-BBCC
import static java.lang.Float.*;
import static java.lang.Long.*;
import static java.lang.System.*;
import java.*;
import java.util.*;
@SuppressWarnings("all")
public class LoremIpsum
{
public static String[] ss;
public static LinkageError up = new LinkageError();
public static int nIntlzd = 0;
public LoremIpsum()
{
throw up;
}
public static void malloc(int n)
{
nIntlzd++;
String str = "lorem ipsum dolor sit amet consectetur adipisicing elit" +
" sed do eiusmod tempor incididunt ut labore et dolore magna aliqua ut enim ad" +
" minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea" +
" commodo consequat duis aute irure dolor in reprehenderit in voluptate velit" +
" esse cillum dolore eu fugiat nulla pariatur excepteur sint occaecat cupidatat" +
" non proident sunt in culpa qui officia deserunt mollit anim id est laborum";
ArrayList srS = new ArrayList();
int i = 0;
String strTmp = new String();
try
{
camefrom:
for(boolean blBln = false; blBln = true; i++)
{
if (str.charAt(i) == ' ')
{
srS.add(strTmp);
strTmp = new String();
continue camefrom;
}
strTmp += str.charAt(i);
}
}
catch (StringIndexOutOfBoundsException e)
{
int j = 0;
ss = new String[srS.size()];
while (j < ss.length)
{
ss[j] = (String) srS.get(j);
j = 1 + j;
}
}
catch (ArrayIndexOutOfBoundsException e)
{
int j = 0;
ss = new String[srS.size()];
while (j < ss.length)
{
ss[j] = (String) srS.get(j);
j += 1;
}
}
catch (Throwable t)
{
out.println("Error!");
exit(1);
return;
}
}
public static String gtstr(int i)
{
if (i == 0)
{
throw up;
}
if (nIntlzd == 0)
{
malloc(i);
}
Random rndm = new Random(floatToIntBits(42) / floatToRawIntBits(i) * reverseBytes(42) + currentTimeMillis() + nIntlzd++ );
String strTmp = new String();
boolean blCps = false;
try
{
inUrLoop:
for (int j = 0; j < i; j++)
{
stuff:
switch(j + 1)
{
case 1:
strTmp += "Lorem ";
continue inUrLoop;
case 2:
strTmp += "ipsum ";
continue inUrLoop;
case 3:
strTmp += "dolor ";
continue inUrLoop;
case 4:
strTmp += "sit ";
continue inUrLoop;
case 5:
strTmp += "amet, ";
continue inUrLoop;
default:
break stuff;
}
int k = rndm.nextInt(ss.length);
String strorgnl = ss[k];
String strTmp2 = strorgnl.substring(1);
if (blCps)
{
switch (strorgnl.charAt(0))
{
case 'a':
strTmp2 = 'A' + strTmp2;
break;
case 'b':
strTmp2 = 'B' + strTmp2;
break;
case 'c':
strTmp2 = 'C' + strTmp2;
break;
case 'd':
strTmp2 = 'D' + strTmp2;
break;
case 'e':
strTmp2 = 'E' + strTmp2;
break;
case 'f':
strTmp2 = 'F' + strTmp2;
break;
case 'g':
strTmp2 = 'G' + strTmp2;
break;
case 'h':
strTmp2 = 'H' + strTmp2;
break;
case 'i':
strTmp2 = 'I' + strTmp2;
break;
case 'j':
strTmp2 = 'J' + strTmp2;
break;
case 'k':
strTmp2 = 'K' + strTmp2;
break;
case 'l':
strTmp2 = 'L' + strTmp2;
break;
case 'm':
strTmp2 = 'M' + strTmp2;
break;
case 'n':
strTmp2 = 'N' + strTmp2;
break;
case 'o':
strTmp2 = 'O' + strTmp2;
break;
case 'p':
strTmp2 = 'P' + strTmp2;
break;
case 'q':
strTmp2 = 'Q' + strTmp2;
break;
case 'r':
strTmp2 = 'R' + strTmp2;
break;
case 's':
strTmp2 = 'S' + strTmp2;
break;
case 't':
strTmp2 = 'T' + strTmp2;
break;
case 'u':
strTmp2 = 'U' + strTmp2;
break;
case 'v':
strTmp2 = 'V' + strTmp2;
break;
case 'w':
strTmp2 = 'W' + strTmp2;
break;
case 'x':
strTmp2 = 'X' + strTmp2;
break;
case 'y':
strTmp2 = 'Y' + strTmp2;
break;
case 'z':
strTmp2 = 'Z' + strTmp2;
break;
default:
out.println("Error!");
exit(1);
break;
}
blCps = false;
}
else
{
switch (strorgnl.charAt(0))
{
case 'a':
strTmp2 = 'a' + strTmp2;
break;
case 'b':
strTmp2 = 'b' + strTmp2;
break;
case 'c':
strTmp2 = 'c' + strTmp2;
break;
case 'd':
strTmp2 = 'd' + strTmp2;
break;
case 'e':
strTmp2 = 'e' + strTmp2;
break;
case 'f':
strTmp2 = 'f' + strTmp2;
break;
case 'g':
strTmp2 = 'g' + strTmp2;
break;
case 'h':
strTmp2 = 'h' + strTmp2;
break;
case 'i':
strTmp2 = 'i' + strTmp2;
break;
case 'j':
strTmp2 = 'j' + strTmp2;
break;
case 'k':
strTmp2 = 'k' + strTmp2;
break;
case 'l':
strTmp2 = 'l' + strTmp2;
break;
case 'm':
strTmp2 = 'm' + strTmp2;
break;
case 'n':
strTmp2 = 'n' + strTmp2;
break;
case 'o':
strTmp2 = 'o' + strTmp2;
break;
case 'p':
strTmp2 = 'p' + strTmp2;
break;
case 'q':
strTmp2 = 'q' + strTmp2;
break;
case 'r':
strTmp2 = 'r' + strTmp2;
break;
case 's':
strTmp2 = 's' + strTmp2;
break;
case 't':
strTmp2 = 't' + strTmp2;
break;
case 'u':
strTmp2 = 'u' + strTmp2;
break;
case 'v':
strTmp2 = 'v' + strTmp2;
break;
case 'w':
strTmp2 = 'w' + strTmp2;
break;
case 'x':
strTmp2 = 'x' + strTmp2;
break;
case 'y':
strTmp2 = 'y' + strTmp2;
break;
case 'z':
strTmp2 = 'z' + strTmp2;
break;
default:
out.println("Error!");
exit(1);
break;
}
}
strTmp += strTmp2;
if (rndm.nextInt(100) > 4)
{
strTmp += " ";
}
else
{
if (rndm.nextInt(100) > 59)
{
strTmp += ", ";
}
else
{
strTmp += ". ";
blCps = true;
}
}
}
throw up;
}
catch (LinkageError e)
{
if (strTmp.charAt(strTmp.length() - 2) == ',' || strTmp.charAt(strTmp.length() - 2) == '.')
{
return strTmp.substring(0, strTmp.length() - 2) + '.';
}
else
{
return strTmp.substring(0, strTmp.length() - 1) + ".";
}
}
catch (Throwable t)
{
out.println("Error!");
exit(1);
return null;
}
}
}
Copy link

ghost commented Oct 19, 2015

[txt]....................................................................................................................................craft

Copy link

ghost commented Oct 19, 2015

#14/return

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment