calculating gambling bonus randomly as per game dissection provided on class site wiki