aboutsummaryrefslogtreecommitdiff
path: root/semestr-3/pf/lista6/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'semestr-3/pf/lista6/test.py')
-rw-r--r--semestr-3/pf/lista6/test.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/semestr-3/pf/lista6/test.py b/semestr-3/pf/lista6/test.py
new file mode 100644
index 0000000..2163ab6
--- /dev/null
+++ b/semestr-3/pf/lista6/test.py
@@ -0,0 +1,14 @@
+import random
+import sys
+
+random.seed(sys.argv[1])
+
+t = []
+n = int(sys.argv[2])
+t = [1]
+print(n)
+
+fir i in range(n):
+ ojc = random.choice(t)
+ print(i, ojc)
+ t.append(i) \ No newline at end of file