NIELIT O Level Exam

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)

B. 5+(int)(Math.random()*10)

C. 5+Math.random()*6

D. 5+Math.random()*10




Correct Answer is :

A. 5+(int)(Math.random()*6)



CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad