fix: reject inverted random integer ranges
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
IMPORT "lib/random.claro" AS random
|
||||
|
||||
TRY
|
||||
CALL random.int WITH 10, 1
|
||||
CATCH
|
||||
ENDTRY
|
||||
SAY LASTERROR
|
||||
@@ -0,0 +1 @@
|
||||
random.int needs the lower bound to be less than or equal to the upper bound.
|
||||
Reference in New Issue
Block a user