Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import java.util.Random;
  2.  
  3. public class abcd {
  4. public static void main(String[] args){
  5.  
  6. int küme[] = new int[20]; //creation of array
  7.  
  8. for(int i=0; i<20; i++){
  9. int number=(int) Math.random()*6; // creation of random numbers between 0 and 5
  10. küme[i] = number; // assignment of random numbers
  11. System.out.print(" "+küme[i]);
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement