title: Python 3 craps simulation
body: <p>I'm not sure how I could incorporate my roll() function into the playRound().  The playRound is supposed to simulate the actual round of craps.  I have to have the roll() function as is along with all of the other code. The only segment I can edit is the playRound() function.</p>
  
  <pre><code>from random import (random, randint)
  
  def roll():
      return randint( 1, 6 ), randint( 1, 6 )
  
  def playRound():
  
  
  def main():
      print("Craps simulation") 
      while True:
          response = input("Enter an integer value &gt; 0 ")
          if response == "": 
            print("Thank you for your business!")
            break
  
          try:
            num_trials = int(response)
            if num_trials &lt; 1: 
                raise ValueError("Input must be &gt;= 1 ")
  
            roundsPlayed = 0
            wins = 0
            while roundsPlayed &lt; num_trials:
                roundsPlayed += 1
                if playRound(): 
                    wins += 1
  
              print( "Probability of winning is {0:&gt;0.2%}".format( wins/num_trials  ) )
  
          except ValueError as err:
            print( err )
          except TypeError as err:
            print( err )
  
  main()
  </code></pre>