Exam Lookup

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




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