We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c25abe9 commit 01751d9Copy full SHA for 01751d9
integration_tests/CMakeLists.txt
@@ -600,6 +600,7 @@ RUN(NAME elemental_11 LABELS cpython llvm c NOFAST)
600
RUN(NAME elemental_12 LABELS cpython llvm c NOFAST)
601
RUN(NAME elemental_13 LABELS cpython llvm c NOFAST)
602
RUN(NAME test_random LABELS cpython llvm NOFAST)
603
+RUN(NAME test_random_02 LABELS cpython llvm NOFAST)
604
RUN(NAME test_os LABELS cpython llvm c NOFAST)
605
RUN(NAME test_builtin LABELS cpython llvm c)
606
RUN(NAME test_builtin_abs LABELS cpython llvm c)
integration_tests/test_random_02.py
@@ -0,0 +1,11 @@
1
+from lpython import f64
2
+import random
3
+
4
+def test_seed():
5
+ random.seed()
6
+ t1: f64 = random.random()
7
+ t2: f64 = random.random()
8
+ print(t1, t2)
9
+ assert abs(t1 - t2) > 1e-3
10
11
+test_seed()
0 commit comments