Report Bug

QusWhich among the following expression will return a random integer between 5 and 10 both inclusive? QusWhich among the following expression will return a random integer between 5 and 10 both inclusive?


A. 5+(int)(Math.random()*6)
B. 5+(int)(Math.random()*10)
C. 5+Math.random()*6
D. 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) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz