Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Random;
- public class abcd {
- public static void main(String[] args){
- int küme[] = new int[20]; //creation of array
- for(int i=0; i<20; i++){
- int number=(int) Math.random()*6; // creation of random numbers between 0 and 5
- küme[i] = number; // assignment of random numbers
- System.out.print(" "+küme[i]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement