Skip to content

Instantly share code, notes, and snippets.

@97997
Created December 26, 2020 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 97997/6281bc2d6b3ec081daffc7b0b7e698f8 to your computer and use it in GitHub Desktop.
Save 97997/6281bc2d6b3ec081daffc7b0b7e698f8 to your computer and use it in GitHub Desktop.
import random
from copy import deepcopy
lines = []
f = open("opciones.txt")
for line in f.readlines():
lines.append(line.strip())
def generate(lines):
static_lines = deepcopy(lines)
random.shuffle(lines)
while len(lines) > 0:
print(lines.pop(), end="")
input()
print("===RESET===")
generate(static_lines)
generate(lines)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment