java codigo para criar um aleatorio entre valores

Solutions on MaxInterview for java codigo para criar um aleatorio entre valores by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
showing results for - "java codigo para criar um aleatorio entre valores"
Kayle
25 Aug 2020
1Random aleatorio = new Random();
2int valor = aleatorio.nextInt(30) + 1;
3System.out.println("Número gerado: " + valor);