diff options
author | Adam Chlipala <adamc@hcoop.net> | 2010-04-29 17:24:42 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2010-04-29 17:24:42 -0400 |
commit | d40bec7348942c36a597b00e146f43777fa303dc (patch) | |
tree | 1e96e71e9ab32ab3f21706e42abbd62676cd1844 /src/c | |
parent | 05f75f15e2207afeeb97fec40ef0fd10d2befef8 (diff) |
Add rand to Basis and handle it in Iflow
Diffstat (limited to 'src/c')
-rw-r--r-- | src/c/urweb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c index 7821a999..6815c85b 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -3404,3 +3404,8 @@ uw_Basis_unit uw_Basis_debug(uw_context ctx, uw_Basis_string s) { return uw_unit_v; } + +uw_Basis_int uw_Basis_rand(uw_context ctx) { + uw_Basis_int n = abs(rand()); + return n; +} |