Tenth button (which would be '0'), and the OK button added.
Additionally functionality of randomzation added.