<div>Hello,</div>
<div> </div>
<div>I'm trying to find a way to use the random.randint function to generate a random number, but everytime I run the program it locks up IDLE. Here is what I have so far:</div>
<div> </div>
<div>import random</div>
<div> </div>
<div>def main():</div>
<div> x = input("Enter a number: ")</div>
<div> y = input("Enter a different number: ")</div>
<div> </div>
<div> z = random.randint(x,y)</div>
<div> </div>
<div>print "The random number between ", x, " and ", y, " is ", z</div>
<div> </div>
<div>main()</div>
<div> </div>
<div>Can you tell me where I'm going wrong here? When I run the program it allows me to enter the numbers for x and y, then freezes. </div>
<div><br>Thanks! </div>
<div>Jeff </div>
<div> </div>