<filename>eCornell_python_cert_work/User-Defined Fn/exercise2/fn.py<gh_stars>0
"""  
A function to roll two dice

Author: <NAME>
Date: 5/20/2021
"""
import random

def rollem(first,last):
    """
    Returns the sum of two random numbers.

    The numbers generated are between first and last (inclusive).  

    Example: rollem(1,6) can return any value between 2 and 12.

    Parameter first: The lowest possible number
    Precondition: first is an integer

    Parameter last: The greatest possible number
    Precondition: last is an integer, last >= first 
    """

    num1 = random.randint(first,last)
    num2 = random.randint(first,last)
    thesum = num1+num2
    return thesum 

<filename>eCornell_python_cert_work/User-Defined Fn/exercise2/fn.py<gh_stars>0
"""  
A function to roll two dice

Author: <NAME>
Date: 5/20/2021
"""
import random

def rollem(first,last):
    """
    Returns the sum of two random numbers.

    The numbers generated are between first and last (inclusive).  

    Example: rollem(1,6) can return any value between 2 and 12.

    Parameter first: The lowest possible number
    Precondition: first is an integer

    Parameter last: The greatest possible number
    Precondition: last is an integer, last >= first 
    """

    num1 = random.randint(first,last)
    num2 = random.randint(first,last)
    thesum = num1+num2
    return thesum 

A function to roll two dice  Author: <NAME> Date: 5/20/2021 Returns the sum of two random numbers.      The numbers generated are between first and last (inclusive).        Example: rollem(1,6) can return any value between 2 and 12.      Parameter first: The lowest possible number     Precondition: first is an integer      Parameter last: The greatest possible number     Precondition: last is an integer, last >= first