update selectorRandom in Helper.java