if Airplane==1:
while icounter<4:
ifuelliter=random.randrange(1,152621)
#litter/kilometer
LpK=152620/13500
km=LpK*ifuelliter
ipca=random.randrange(0,50)
ipcb=random.randrange(0,50)
ipcc=random.randrange(0,812)
#3D space distance calculation
idstance= math.sqrt((icba-ipca)**2 + (icbb-ipcb)**2 + (icbc-ipcc)**2)
totaldist=km-idstance
if totaldist>0:
print "You have enoph fuel to get to New York AirPort"
print ipca1,ipcb2,ipcc3
icounter=3
if totaldist<=0:
print "You dont have enoph fuel to get to New York AirPort please go to the nearest one or you will die"
print ipca,ipcb,ipcc
icounter=icounter+1`
どうすればそれを作ることができますか
ipca=random.randrange(0,50)
ipcb=random.randrange(0,50)
ipcc=random.randrange(0,812)
乱数は毎回ループダウンし、他の数値は毎回ダウンしません。例:いいえ:
812 512 321 815 600 700
はい:
800 600 550 320 50 1