title: Application crashes when given big number
body: <p>I created an app that generate random number between 2 given values and and its working good it dose what it say but if i entered 11 digit number in the max value (or min value) the app crashes how can I fix it is there another way to generate random number to support big values here is the code</p>
  
  <pre><code>        Button gen = (Button)findViewById(R.id.button);
          final EditText mini = (EditText)findViewById(R.id.mini);
          final EditText maxi = (EditText)findViewById(R.id.maxi);
          final TextView res = (TextView)findViewById(R.id.result);
  
          final Random r = new Random();
          final int[] number = {0};
  
          gen.setOnClickListener(new View.OnClickListener() {
             @Override
             public void onClick(View view) {
                  int minn = Integer.parseInt(mini.getText().toString());
                  int maxx = Integer.parseInt(maxi.getText().toString());
  
                  if (minn&gt;=maxx){
                     maxi.setText(String.valueOf(minn));
                     mini.setText(String.valueOf(maxx));
                     maxx = Integer.parseInt(maxi.getText().toString());
                     minn = Integer.parseInt(mini.getText().toString());
                     number[0] = minn + r.nextInt(maxx - minn + 1);
                     res.setText(String.valueOf(number[0]));
                 }else{
                     number[0] = minn + r.nextInt(maxx - minn + 1);
                     res.setText(String.valueOf(number[0]));
                 }
                 getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
              }   
         });
  } 
  </code></pre>