Learn Java - #23 - Random Numbers and Selecting From Arrays

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thank you very much. This was a very helpful video for me. I needed to be able to create several arrays and have a random number generated to use portions of those arrays to make sentences out of the various arrays. After watching this, I should be good to go on creating that. Thank you.

edithh
Автор

man this really helped me i didnt even knew that u can make arrays like this, I was trying to make like this:

String[] name = {"rock", "pop", "hip-hop", "lo-fi"}

Random random = new Random();
for(int {
name = random.nextInt(10);
System.out.println(name +" ");
}

but this just worked with int

thank you

Ovvnm
Автор

Thanks for helping me to understand this.

KaroliKolokonyi
Автор

How would we make it select 2 names from the array and then remove them from the next time it runs?

ahlan
Автор

Can you use a loop to make the program pick 10 names at random?

jamu
Автор

do u know anything about how the computer works when selecting winners from a contest

Justme-zqxd
Автор

syntax for 2 dimentional is also same? help please studen here

johnpaulpurugganan
Автор

im having 10 arrays in my layout values how can i get random values from random arrays anyone plz

saqibumer
visit shbcf.ru