mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
9 lines
193 B
Python
9 lines
193 B
Python
import random
|
|
|
|
def write_random_to_file():
|
|
no = random.randint(1, 10)
|
|
with open("random.txt", "w") as file:
|
|
file.write(str(no))
|
|
return no
|
|
|
|
random_no = write_random_to_file() |