/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package listaexercicios;

/**
 *
 * @author awolf
 */
public class Questao32 {

    public static int geraNumero(int max) {
        return 1 + (int) (Math.random() * max);
    }

    public static void main(String[] args) {
        int numero = geraNumero(10);
        System.out.println(numero);
    }
}
