Updating controllers

Adding logic for random number.