From 28ab9c8ba094d86dbcb9abb853dddd83dca028cc Mon Sep 17 00:00:00 2001 From: nic-gaffney Date: Sun, 25 Jun 2023 19:41:03 -0500 Subject: Standard library updated and llvm-sys added to cargo.toml --- std/stdmath.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 std/stdmath.c (limited to 'std/stdmath.c') diff --git a/std/stdmath.c b/std/stdmath.c new file mode 100644 index 0000000..c9a91c3 --- /dev/null +++ b/std/stdmath.c @@ -0,0 +1,11 @@ +#include +#include +#include + +int randGen(int min, int max) { + time_t t; + + srand((unsigned) time(&t)); + + return rand() % (max - min + 1) + min; +} -- cgit v1.2.3