Advertisement
Guest User

Untitled

a guest
May 29th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.16 KB | None | 0 0
  1.         for i in range(0, 7):
  2.             for j in range(0, 30):
  3.                 row = random.uniform(80, 100)
  4.                 space = random.uniform(5, 30)
  5.                 min_max = random.uniform(70, 110)
  6.                 alfa_beta = min_max - random.uniform(8, 14) if random.randint(1, 8) == 3 else min_max - random.uniform(4, 6)
  7.                 if j == 1:
  8.                     min_max -= 30
  9.                     alfa_beta -= 30
  10.                 if j > 4 and j < 10:
  11.                     row = random.uniform(95, 100)
  12.                     space = random.uniform(20, 30)
  13.  
  14.                 both = row + space + random.uniform(0.5, 10.0)
  15.  
  16.                 min_max = random.uniform()
  17.                 output_data = {
  18.                     'step': j,
  19.                     'data':{
  20.                         'heurystyki':{
  21.                             'row': row,
  22.                             'space': space,
  23.                             'both': both
  24.                         },
  25.                         'algorithm': {
  26.                             'min-max': min_max,
  27.                             'alfa-beta': alfa_beta
  28.                         }
  29.                     }
  30.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement