OSCtoCV Library

Dependents:   OSCtoCVConverter

Revision:
0:cd43a974c54c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/OSCtoCV_Random.h	Sun Jan 17 09:30:32 2016 +0000
@@ -0,0 +1,31 @@
+/*
+    OSCtoCV Shift Sequencer & M185 Sequencer
+*/
+
+#pragma O3
+#pragma Otime
+
+#ifndef OSCtoCV_RANDOM_h
+#define OSCtoCV_RANDOM_h
+
+#include "mbed.h"
+
+//-------------------------------------------------------------
+// Random Functions
+
+// linear congruential generator
+double Lcg(void);
+
+// xorshift random generator
+uint32_t Xorshift_32(void);
+
+// generate random number from 0 to 1
+double Rnd(void);
+
+// beta distribution random
+double RndBeta(double a, double b);  
+
+// sequential random cv generator
+void RandomCVGenerator(int trigger);
+
+#endif