I have an exam this week in college. One of the past MCQ questions is:-
“What is the purpose of (int) in the statement 1 + (int) (Math.random() * 8)”
Any ideas on what the purpose of (int) is here. Sound.