homework random number genirater