Add comments on how to use random generator in ruby and scala