OSCtoCV Library

Dependents:   OSCtoCVConverter

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers OSCtoCV_Random.h Source File

OSCtoCV_Random.h

00001 /*
00002     OSCtoCV Shift Sequencer & M185 Sequencer
00003 */
00004 
00005 #pragma O3
00006 #pragma Otime
00007 
00008 #ifndef OSCtoCV_RANDOM_h
00009 #define OSCtoCV_RANDOM_h
00010 
00011 #include "mbed.h"
00012 
00013 //-------------------------------------------------------------
00014 // Random Functions
00015 
00016 // linear congruential generator
00017 double Lcg(void);
00018 
00019 // xorshift random generator
00020 uint32_t Xorshift_32(void);
00021 
00022 // generate random number from 0 to 1
00023 double Rnd(void);
00024 
00025 // beta distribution random
00026 double RndBeta(double a, double b);  
00027 
00028 // sequential random cv generator
00029 void RandomCVGenerator(int trigger);
00030 
00031 #endif