Jump to content

I want to make a random integer with a min and a max

 

I also want to use this random integer to see if the input is equal.

 

For example:

 

#Variables

%Generate Random Number & Assign it to randomNumber%

randomNumber

 

print ('The first number is',randomNumber,'.')

get input1

if input1 == randomNumber1

    print ('Correct!')

 

http://prntscr.com/1jtvwg

 

Based off Math Circus Act 4 which I am attempting to re-master xD

 

Link to comment
https://linustechtips.com/topic/43501-python-random-integer/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×