Kudo News

December 14, 2011

Filed under: Uncategorized — Cyclone999 @ 6:34 pm

import java.util.Random;

public class Test {
public static void main(String[] args) throws InterruptedException {
Random generator = new Random();
String[][] presents = {
{“Your present is “, “Congratulations, you got “, “Yayyyy lucky, you got “, “Hey derpface, you get “, “You’ve been pretty naughty, but here is ” },
{“10 iron ingots”, “10 gold ingots”, “3 diamonds”, “64 logs”, “5 golden apples”, “creative mode for a day!”, “you can kill anybody in the server 3 times”, “256 cobblestones”, “diamond pickaxe/shovel”, “64 blocks of glass”, “32 of any colored wool”}
};

int randomGift = generator.nextInt(11);
int randomText = generator.nextInt(5);
System.out.println(“KK, hold on. Searching for Santa…”);
Thread.sleep(2000);
System.out.println(“Checking if you’ve been a good boy…”);
Thread.sleep(2000);
System.out.println(“Alright, kiddo. Generating a random gift for you…”);
Thread.sleep(2000);
System.out.println(presents[0][randomText] + presents[1][randomGift] );
System.out.println(“”);
System.out.println(“”);
System.out.println(“”);

System.out.println(“Hopefully your present’s pretty good :P “);
System.out.println(“Program coded by Kelvin”);
}

}

Advertisement

Leave a Comment »

No comments yet.

RSS feed for comments on this post.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: WordPress Classic. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.