SlideShare a Scribd company logo
import java.util.Random;
public class randomCalls {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Random rn = new Random();
int n;
for(int i=1;i<=720;i++)
{
n = rn.nextInt(6) +5;
System.out.print(n);
System.out.print(' ');
System.out.println(i);
}
}
}
Solution
import java.util.Random;
public class randomCalls {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Random rn = new Random();
int n;
for(int i=1;i<=720;i++)
{
n = rn.nextInt(6) +5;
System.out.print(n);
System.out.print(' ');
System.out.println(i);
}
}
}

More Related Content

More from aquadreammail

Increases. Gases have higher entropy than liquids.pdf
                     Increases. Gases have higher entropy than liquids.pdf                     Increases. Gases have higher entropy than liquids.pdf
Increases. Gases have higher entropy than liquids.pdf
aquadreammail
 
Simple C++ program to multiply two polynomials#include iostrea.pdf
 Simple C++ program to multiply two polynomials#include iostrea.pdf Simple C++ program to multiply two polynomials#include iostrea.pdf
Simple C++ program to multiply two polynomials#include iostrea.pdf
aquadreammail
 
design and deliver an confirmation based academic and instruction sy.pdf
  design and deliver an confirmation based academic and instruction sy.pdf  design and deliver an confirmation based academic and instruction sy.pdf
design and deliver an confirmation based academic and instruction sy.pdf
aquadreammail
 
OK, let me try to talk you through this. The arro.pdf
                     OK, let me try to talk you through this. The arro.pdf                     OK, let me try to talk you through this. The arro.pdf
OK, let me try to talk you through this. The arro.pdf
aquadreammail
 
x=input(Enter the first sequence ); l1=input(Enter the lowe.pdf
x=input(Enter the first sequence ); l1=input(Enter the lowe.pdfx=input(Enter the first sequence ); l1=input(Enter the lowe.pdf
x=input(Enter the first sequence ); l1=input(Enter the lowe.pdf
aquadreammail
 
Yes , we can view .Xmzx files are encoded files that take to be un.pdf
Yes , we can view .Xmzx files are encoded files that take to be un.pdfYes , we can view .Xmzx files are encoded files that take to be un.pdf
Yes , we can view .Xmzx files are encoded files that take to be un.pdf
aquadreammail
 
The middle Carbon is the SP hybridized atom.SP hybrid orbitals con.pdf
The middle Carbon is the SP hybridized atom.SP hybrid orbitals con.pdfThe middle Carbon is the SP hybridized atom.SP hybrid orbitals con.pdf
The middle Carbon is the SP hybridized atom.SP hybrid orbitals con.pdf
aquadreammail
 
The link provided by your teacher is a popular article based on the .pdf
The link provided by your teacher is a popular article based on the .pdfThe link provided by your teacher is a popular article based on the .pdf
The link provided by your teacher is a popular article based on the .pdf
aquadreammail
 
EPO, hematopoietin, or hemopoietin, is a glycoprotein hormone that c.pdf
EPO, hematopoietin, or hemopoietin, is a glycoprotein hormone that c.pdfEPO, hematopoietin, or hemopoietin, is a glycoprotein hormone that c.pdf
EPO, hematopoietin, or hemopoietin, is a glycoprotein hormone that c.pdf
aquadreammail
 
The answer is D) IIA buffer system must contain a weak acid and i.pdf
The answer is D) IIA buffer system must contain a weak acid and i.pdfThe answer is D) IIA buffer system must contain a weak acid and i.pdf
The answer is D) IIA buffer system must contain a weak acid and i.pdf
aquadreammail
 
c. underwent morphogenesis between the early and late gastrula stage.pdf
c. underwent morphogenesis between the early and late gastrula stage.pdfc. underwent morphogenesis between the early and late gastrula stage.pdf
c. underwent morphogenesis between the early and late gastrula stage.pdf
aquadreammail
 
Text Component FeaturesThe JTextComponent class is the foundation .pdf
Text Component FeaturesThe JTextComponent class is the foundation .pdfText Component FeaturesThe JTextComponent class is the foundation .pdf
Text Component FeaturesThe JTextComponent class is the foundation .pdf
aquadreammail
 
SolutionPreparing the T-Accounts for the Above TransactionPrep.pdf
SolutionPreparing the T-Accounts for the Above TransactionPrep.pdfSolutionPreparing the T-Accounts for the Above TransactionPrep.pdf
SolutionPreparing the T-Accounts for the Above TransactionPrep.pdf
aquadreammail
 
operating system linux,ubuntu,Mac Geometri.pdf
operating system linux,ubuntu,Mac Geometri.pdfoperating system linux,ubuntu,Mac Geometri.pdf
operating system linux,ubuntu,Mac Geometri.pdf
aquadreammail
 
NO TILL FARMINGNo-till farming (also called zero tillage or direct.pdf
NO TILL FARMINGNo-till farming (also called zero tillage or direct.pdfNO TILL FARMINGNo-till farming (also called zero tillage or direct.pdf
NO TILL FARMINGNo-till farming (also called zero tillage or direct.pdf
aquadreammail
 
Lions use sounds with different intensities, senses such as tough an.pdf
Lions use sounds with different intensities, senses such as tough an.pdfLions use sounds with different intensities, senses such as tough an.pdf
Lions use sounds with different intensities, senses such as tough an.pdf
aquadreammail
 
let R be ringI be a subgroup under additionif I be idealfor a,.pdf
let R be ringI be a subgroup under additionif I be idealfor a,.pdflet R be ringI be a subgroup under additionif I be idealfor a,.pdf
let R be ringI be a subgroup under additionif I be idealfor a,.pdf
aquadreammail
 
If we use evaporation or recrystallization, we would only remove the.pdf
If we use evaporation or recrystallization, we would only remove the.pdfIf we use evaporation or recrystallization, we would only remove the.pdf
If we use evaporation or recrystallization, we would only remove the.pdf
aquadreammail
 
I am considering the case where you have multiple name in same file .pdf
I am considering the case where you have multiple name in same file .pdfI am considering the case where you have multiple name in same file .pdf
I am considering the case where you have multiple name in same file .pdf
aquadreammail
 
Hormone A chemical substance produced in the body by ductless gland.pdf
Hormone A chemical substance produced in the body by ductless gland.pdfHormone A chemical substance produced in the body by ductless gland.pdf
Hormone A chemical substance produced in the body by ductless gland.pdf
aquadreammail
 

More from aquadreammail (20)

Increases. Gases have higher entropy than liquids.pdf
                     Increases. Gases have higher entropy than liquids.pdf                     Increases. Gases have higher entropy than liquids.pdf
Increases. Gases have higher entropy than liquids.pdf
 
Simple C++ program to multiply two polynomials#include iostrea.pdf
 Simple C++ program to multiply two polynomials#include iostrea.pdf Simple C++ program to multiply two polynomials#include iostrea.pdf
Simple C++ program to multiply two polynomials#include iostrea.pdf
 
design and deliver an confirmation based academic and instruction sy.pdf
  design and deliver an confirmation based academic and instruction sy.pdf  design and deliver an confirmation based academic and instruction sy.pdf
design and deliver an confirmation based academic and instruction sy.pdf
 
OK, let me try to talk you through this. The arro.pdf
                     OK, let me try to talk you through this. The arro.pdf                     OK, let me try to talk you through this. The arro.pdf
OK, let me try to talk you through this. The arro.pdf
 
x=input(Enter the first sequence ); l1=input(Enter the lowe.pdf
x=input(Enter the first sequence ); l1=input(Enter the lowe.pdfx=input(Enter the first sequence ); l1=input(Enter the lowe.pdf
x=input(Enter the first sequence ); l1=input(Enter the lowe.pdf
 
Yes , we can view .Xmzx files are encoded files that take to be un.pdf
Yes , we can view .Xmzx files are encoded files that take to be un.pdfYes , we can view .Xmzx files are encoded files that take to be un.pdf
Yes , we can view .Xmzx files are encoded files that take to be un.pdf
 
The middle Carbon is the SP hybridized atom.SP hybrid orbitals con.pdf
The middle Carbon is the SP hybridized atom.SP hybrid orbitals con.pdfThe middle Carbon is the SP hybridized atom.SP hybrid orbitals con.pdf
The middle Carbon is the SP hybridized atom.SP hybrid orbitals con.pdf
 
The link provided by your teacher is a popular article based on the .pdf
The link provided by your teacher is a popular article based on the .pdfThe link provided by your teacher is a popular article based on the .pdf
The link provided by your teacher is a popular article based on the .pdf
 
EPO, hematopoietin, or hemopoietin, is a glycoprotein hormone that c.pdf
EPO, hematopoietin, or hemopoietin, is a glycoprotein hormone that c.pdfEPO, hematopoietin, or hemopoietin, is a glycoprotein hormone that c.pdf
EPO, hematopoietin, or hemopoietin, is a glycoprotein hormone that c.pdf
 
The answer is D) IIA buffer system must contain a weak acid and i.pdf
The answer is D) IIA buffer system must contain a weak acid and i.pdfThe answer is D) IIA buffer system must contain a weak acid and i.pdf
The answer is D) IIA buffer system must contain a weak acid and i.pdf
 
c. underwent morphogenesis between the early and late gastrula stage.pdf
c. underwent morphogenesis between the early and late gastrula stage.pdfc. underwent morphogenesis between the early and late gastrula stage.pdf
c. underwent morphogenesis between the early and late gastrula stage.pdf
 
Text Component FeaturesThe JTextComponent class is the foundation .pdf
Text Component FeaturesThe JTextComponent class is the foundation .pdfText Component FeaturesThe JTextComponent class is the foundation .pdf
Text Component FeaturesThe JTextComponent class is the foundation .pdf
 
SolutionPreparing the T-Accounts for the Above TransactionPrep.pdf
SolutionPreparing the T-Accounts for the Above TransactionPrep.pdfSolutionPreparing the T-Accounts for the Above TransactionPrep.pdf
SolutionPreparing the T-Accounts for the Above TransactionPrep.pdf
 
operating system linux,ubuntu,Mac Geometri.pdf
operating system linux,ubuntu,Mac Geometri.pdfoperating system linux,ubuntu,Mac Geometri.pdf
operating system linux,ubuntu,Mac Geometri.pdf
 
NO TILL FARMINGNo-till farming (also called zero tillage or direct.pdf
NO TILL FARMINGNo-till farming (also called zero tillage or direct.pdfNO TILL FARMINGNo-till farming (also called zero tillage or direct.pdf
NO TILL FARMINGNo-till farming (also called zero tillage or direct.pdf
 
Lions use sounds with different intensities, senses such as tough an.pdf
Lions use sounds with different intensities, senses such as tough an.pdfLions use sounds with different intensities, senses such as tough an.pdf
Lions use sounds with different intensities, senses such as tough an.pdf
 
let R be ringI be a subgroup under additionif I be idealfor a,.pdf
let R be ringI be a subgroup under additionif I be idealfor a,.pdflet R be ringI be a subgroup under additionif I be idealfor a,.pdf
let R be ringI be a subgroup under additionif I be idealfor a,.pdf
 
If we use evaporation or recrystallization, we would only remove the.pdf
If we use evaporation or recrystallization, we would only remove the.pdfIf we use evaporation or recrystallization, we would only remove the.pdf
If we use evaporation or recrystallization, we would only remove the.pdf
 
I am considering the case where you have multiple name in same file .pdf
I am considering the case where you have multiple name in same file .pdfI am considering the case where you have multiple name in same file .pdf
I am considering the case where you have multiple name in same file .pdf
 
Hormone A chemical substance produced in the body by ductless gland.pdf
Hormone A chemical substance produced in the body by ductless gland.pdfHormone A chemical substance produced in the body by ductless gland.pdf
Hormone A chemical substance produced in the body by ductless gland.pdf
 

Recently uploaded

"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 

Recently uploaded (20)

"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 

import java.util.Random; public class randomCalls {      .pdf

  • 1. import java.util.Random; public class randomCalls { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Random rn = new Random(); int n; for(int i=1;i<=720;i++) { n = rn.nextInt(6) +5; System.out.print(n); System.out.print(' '); System.out.println(i); } } } Solution import java.util.Random; public class randomCalls { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Random rn = new Random(); int n; for(int i=1;i<=720;i++) { n = rn.nextInt(6) +5; System.out.print(n); System.out.print(' ');