change accessibility of RandomProvider