Advertisement
Guest User

InfiniteLoop

a guest
Nov 25th, 2014
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. import java.util.Random;
  2.  
  3. public class InfiniteLoop {
  4.    
  5.     public static void main(String[] args) {
  6.         Random gen = new Random();
  7.         int max = 10;
  8.        
  9.         int x = gen.nextInt(max);
  10.         while(x != gen.nextInt(max))
  11.         {
  12.             //Body
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement