IXL Learning interview question

How to play background music randomly?

Interview Answer

Anonymous

27 Oct 2017

I use Java Random API to get next int, then check it if equals the previous one, if yes, get next(10) again.