Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** Here's my quickie just to ease my decicions.
- ** Quit by choosing '0' to be maximum
- **/
- import java.util.Scanner;
- public class Randomizer {
- public static Scanner lue = new Scanner (System.in);
- public static void main (String wifuaouf[]) {
- System.out.println("*** Randomizer ***");
- int i = 0;
- while (i == 0) {
- System.out.print("\nMaximum: ");
- int max = lue.nextInt();
- if (max == 0)
- break;
- int random = (int)(1+max*Math.random());
- if (random == 0) {
- System.out.println("If you see this,\n you have done \nsomething impossible\nso fuck yourself silly");
- break;
- }
- System.out.print("\nRandom: "+random+"\n");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment