Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int pismoGlava (int n){
- int pismo = 0;
- int glava = 0;
- for (int i = 1; i <= n; i++){
- int x = (int)(Math.random() * 2);
- if (x == 0){
- pismo++;
- }
- else{
- glava++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement