import random

names = ["Trent", "Derek", "Elijah", "Carson", "Gavin", "Justin", "Alex", "Grant", "Michael",
 "Grayson", "Aidan", "Sean", "Lester", "Peter", "Jack"]

i = 1
while i <= 5:
    random_name=random.choice(names)
    print(random_name)
    i += 1
Peter
Michael
Grayson
Gavin
Michael
import random

player1 = random.randint(1, 6) + random.randint(1, 6)
player2 = random.randint(1, 6) + random.randint(1, 6)

print("Player 1 rolled a " + str(player1) + "!")
print("Player 2 rolled a " + str(player2) + "!")

if player1 > player2:
    print("Player 1 wins!")
if player1 < player2:
    print("Player 2 wins!")
if player1 == player2:
    print("Player 1 and Player 2 tied!")
Player 1 rolled a 7!
Player 2 rolled a 9!
Player 2 wins!
import random

directions = ["up", "down", "left", "right"]

# squares will be numbered 1-25 on grid, which is how I will decide positions on grid
initial_direction = random.choice(directions)
initial_position = random.randint(1, 25)
goal_position = random.randint(1, 25)

print("Initial direction: " + initial_direction)
print("Initial position: " + str(initial_position))
print("Goal position: " + str(goal_position))

# obstacles
print("Obstacle positions:")
i = 1
while i <= 12:
    obstacle = random.randint(1, 25)
    print(str(obstacle))
    i += 1

# if an obstacle position contradicts with another position, just put one obstacle or whatever else 
    # is supposed to go there
Initial direction: down
Initial position: 11
Goal position: 21
Obstacle positions:
15
3
6
21
2
11
19
8
23
9
24
10