Infinite loop in java

How to Random.choice Equivalent in Java for an Array?