<HTML><HEAD>
<META charset=US-ASCII http-equiv=Content-Type content="text/html; charset=US-ASCII">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; BACKGROUND-COLOR: #ffffff">
<DIV>I don't want to write my own equations for creating random numbers (based on 'time.time()'), but i need random numbers to create account id's and assign starting money in the program segment below . . . i would use [import random *] but i'm not sure which section of random is a random number generator or the syntax necessary to apply it. Any help would be appreciated.</DIV>
<DIV> </DIV>
<DIV>def newuser(): </DIV>
<DIV> new = raw_input("Are you a new user [y/n]? ") </DIV>
<DIV> while new not in 'yYnN': <BR> new = raw_input("""<BR> Please enter 'y' for yes or 'n' for no.<BR> Are you a new user? """)<BR> if new in 'yY': <BR> import math<BR> vowelcount = 0 </DIV>
<DIV> name = raw_input("Please enter your first name. ")<BR> name = name[:6]</DIV>
<DIV> namel = raw_input("Please enter your last name. ") <BR> namel = namel[:6] <BR> name = name + ' ' + namel<BR> vowels = ['a','e','i','o','u','A','E','I','O','U'] <BR> for letter in name: </DIV>
<DIV> if letter in vowels: <BR> vowelcount = vowelcount + 1 <BR> global startmon <BR> global tim <BR> tim = time.time() % 100000<BR> startmon = vowelcount * tim <BR> startmon = math.sqrt(startmon) * 3141.5962 </DIV>
<DIV> startmon = str(startmon)[:7] <BR> startmon = int(float(startmon)) <BR> print "Welcome, %s. You have $%d to use in BankSim 1.0." % (name, startmon)</DIV>
<DIV>def newacc(): <BR> global newac <BR> newac = raw_input("Would you like to create a new account [y/n]? ") </DIV>
<DIV> while newac not in 'yYnN': <BR> newac = raw_input("""<BR> Please enter 'y' for yes or 'n' for no.<BR> Would you like to create a new acount [y/n]? """) <BR> if newac in 'yY': <BR> import math <BR> global newacid </DIV>
<DIV> newacid = int(raw_input("Please enter your birthday [ddmmyyyy]. ")) <BR> newacid = newacid * tim <BR> newacid = math.sqrt(newacid) * 314.15692 <BR> newacid = str(newacid)[:6] <BR> newacid = int(float(newacid))<BR> initbal = int(raw_input("How much money would you like to put in your account? ")) <BR> print "Account number %d created with $%d in it." % (newacid, initbal)<BR> mon = startmon - initbal<BR> print "You now have $%d in account %d and $%d out of the bank." % (initbal, newacid, mon)</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV>Orri</DIV></BODY></HTML>