# Random Walk in 1 dimension, no class, no vectorization

import random

n = 100
x = 0
path = [x]
for i in range(n):
    x += 2 * random.randint(0, 1) - 1
    path.append(x)

print(path)

d7814268864c84b8a4651126d4ec730735742784
<mask token>

<mask token>
for i in range(n):
    x += 2 * random.randint(0, 1) - 1
    path.append(x)
print(path)

<mask token>
n = 100
x = 0
path = [x]
for i in range(n):
    x += 2 * random.randint(0, 1) - 1
    path.append(x)
print(path)

import random
n = 100
x = 0
path = [x]
for i in range(n):
    x += 2 * random.randint(0, 1) - 1
    path.append(x)
print(path)

# Random Walk in 1 dimension, no class, no vectorization

import random

n = 100
x = 0
path = [x]
for i in range(n):
    x += 2 * random.randint(0, 1) - 1
    path.append(x)

print(path)
