import java.util.Random;

class BreakContin {
    public static void main(String[] args){
      
      Random RNG = new Random();
      
      boolean done=false;
      
      while(!done) {
        
        int r = RNG.nextInt(100);
        
        if(r>90) continue; // SKIP the rest of the loop
        
        System.out.println(r); // we'll never see a value > 90
        
        // break if "too small"
        if(r<5) break; // LEAVE the loop
        
        if(r==50) done=true; // stop looping
      }// next   
    }
}// BreakContin