aboutsummaryrefslogtreecommitdiff
path: root/contrib/bc/tests/bc/lib2_rand.txt
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bc/tests/bc/lib2_rand.txt')
-rw-r--r--contrib/bc/tests/bc/lib2_rand.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/bc/tests/bc/lib2_rand.txt b/contrib/bc/tests/bc/lib2_rand.txt
new file mode 100644
index 000000000000..a9d94509c79f
--- /dev/null
+++ b/contrib/bc/tests/bc/lib2_rand.txt
@@ -0,0 +1,11 @@
+b = brand()
+b < 2
+b >= 0
+i = irand(maxrand() + 1)
+i <= maxrand()
+i >= 0
+f = frand(10)
+scale(f) == 10
+fi = ifrand(123, 28)
+scale(fi) == 28
+fi < 128