Untitled
unknown
plain_text
3 years ago
591 B
9
Indexable
def temp(a,b):
import random
ty = 37.0
y = random.uniform(a,b)
yt = random.uniform(1,1000)
print(ty)
for i in range(int(yt)):
t = round(random.uniform(a,b),2)
if -0.05 < temp_forskel(t,ty) < 0.05:
ty=t
print(t)
##
##
## print(t)
## if 0.0 <= a < 1.0 and b == (a-0.5) / 10:
## -0.05 <= b < 0.05
## print(float(t))
## return t
def temp_forskel(t,tf):
return t-tf
def main():
c = 0
min = 30.0
max = 42.0
c = temp(min,max)
d = (temp(min,max))
print(c,d)
main()Editor is loading...