Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Random;
- public class InfiniteLoop {
- public static void main(String[] args) {
- Random gen = new Random();
- int max = 10;
- int x = gen.nextInt(max);
- while(x != gen.nextInt(max))
- {
- //Body
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement