Commit
·
73396ce
1
Parent(s):
4561153
Increasing the range of random_seed
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ def generate_random_walk(iters, step_size = 1, random_seed = None):
|
|
| 13 |
start_point = [0, 0]
|
| 14 |
|
| 15 |
if random_seed is None:
|
| 16 |
-
random_seed = random.randint(1,
|
| 17 |
|
| 18 |
def distance_from_start(final_coord, start_coord, round_to=2):
|
| 19 |
return round(np.sqrt((final_coord[0] - start_coord[0])**2 + (final_coord[1] - start_coord[1])**2), round_to)
|
|
|
|
| 13 |
start_point = [0, 0]
|
| 14 |
|
| 15 |
if random_seed is None:
|
| 16 |
+
random_seed = random.randint(1, 100000)
|
| 17 |
|
| 18 |
def distance_from_start(final_coord, start_coord, round_to=2):
|
| 19 |
return round(np.sqrt((final_coord[0] - start_coord[0])**2 + (final_coord[1] - start_coord[1])**2), round_to)
|