summaryrefslogtreecommitdiff
path: root/c/randomnumbers/randomnumbers.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/randomnumbers/randomnumbers.c')
-rw-r--r--c/randomnumbers/randomnumbers.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/c/randomnumbers/randomnumbers.c b/c/randomnumbers/randomnumbers.c
new file mode 100644
index 0000000..b0e0d13
--- /dev/null
+++ b/c/randomnumbers/randomnumbers.c
@@ -0,0 +1,14 @@
+/* Random Number Thing for RVController
+ * A product of Advanced Mesecons Devices, a Cheapie Systems company
+ * This is free and unencumbered software released into the public domain.
+ * See http://unlicense.org/ for more information */
+
+#include <stdint.h>
+#include "rvcontroller-ecalls.h"
+
+void main(void) {
+ for (;;) {
+ printint(randomint(0,999999));
+ printchar('\n');
+ }
+}