0

i need one random(must be 10 numbers positive and 10 negetive )ex to use continue and break

13th Aug 2016, 2:34 AM
Amin Sadat
Amin Sadat - avatar
10 Respuestas
+ 4
I would never send full code since this would destroy the learning factor. You propably need this for school but you are too lazy to try to solve it.
13th Aug 2016, 10:08 AM
Eric Zeus
Eric Zeus - avatar
+ 3
(int) Math.eandom ()×20-10; oder new Random.nextInt (20)-10;
13th Aug 2016, 9:06 AM
Eric Zeus
Eric Zeus - avatar
+ 3
while (x <10){ if (low percentage)break; if (percentage)continue; else if(percentage) x++; else x---; } hope that helps you a little bit.
13th Aug 2016, 10:19 AM
Eric Zeus
Eric Zeus - avatar
+ 2
for what should I use continue and break?
13th Aug 2016, 9:59 AM
Eric Zeus
Eric Zeus - avatar
+ 1
i need one random to find 10 Arch nu. and 10 pair nu.
13th Aug 2016, 10:52 AM
Amin Sadat
Amin Sadat - avatar
0
send full code and use continue and berak
13th Aug 2016, 9:56 AM
Amin Sadat
Amin Sadat - avatar
0
i have to use continue and break
13th Aug 2016, 10:12 AM
Amin Sadat
Amin Sadat - avatar
0
thanks
13th Aug 2016, 10:30 AM
Amin Sadat
Amin Sadat - avatar
0
and how i can find Arch numbers and pair numbers in that rondom
13th Aug 2016, 10:32 AM
Amin Sadat
Amin Sadat - avatar
0
what do you mean by them?
13th Aug 2016, 10:37 AM
Eric Zeus
Eric Zeus - avatar