Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) throws Exception {
- String st="1 ";
- int c=0;
- int b = 0;
- Random r= new Random();
- for(int j=0;j<100;j++){
- for(int i=0;i<1;i++){
- b=r.nextInt(30);
- if(b==3) c++;
- st+= b+" ";
- }
- }
- System.out.println(st);
- System.out.println(c);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement