ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
Java
: JAVA Library Classes
Which among the following expression will return a random integer between 5 and 10 both inclusive? , Which among the following expression will return a random integer between 5 and 10 both inclusive?
Which among the following expression will return a random integer between 5 and 10 both inclusive?
A.
5+(int)(Math.random()*6)
5+(int)(Math.random()*6)
B.
5+(int)(Math.random()*10)
5+(int)(Math.random()*10)
C.
5+Math.random()*6
5+Math.random()*6
D.
5+Math.random()*10
5+Math.random()*10
Solution
A. 5+(int)(Math.random()*6)
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad