fork download
  1. public class Main {
  2.  
  3. public static void main(String[] args) {
  4. // int x = new java.util.Random().nextInt(N) + M; <従来>
  5. // xの最大値 = M + N - 1
  6. // xの最小値 = M + 0
  7.  
  8. // int x = new java.util.Random().nextInt(N - M + 1) + M; <修正後>
  9.  
  10. }
  11.  
  12. }
Success #stdin #stdout 0.04s 4386816KB
stdin
Standard input is empty
stdout
Standard output is empty