Open
Description
Olá @cami-la ,
No Ex3_NumerosAleatorios, para gerar números aleatórios de 0 a 100, acho que:
Esta linha:
int numero = random.nextInt(100);
Deveria ser alterada para:
int numero = random.nextInt(101);
Observe a descrição do método random.nextInt()
:
Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.
PS.: Ocorre o mesmo no Ex4_ArrayMultidimensional.
Agradeço verificar e comentar.
Metadata
Metadata
Assignees
Labels
No labels