Keisuke Sehara
/
STM32_Whisking
fast-feedback virtual target task code on STM Nucleo
Diff: random.h
- Revision:
- 2:0c241937eabd
- Parent:
- 0:f736749c33d2
- Child:
- 13:8ea85a33e37a
diff -r 871d3066c2ab -r 0c241937eabd random.h --- a/random.h Mon May 14 17:37:26 2018 +0000 +++ b/random.h Mon May 14 18:07:57 2018 +0000 @@ -10,6 +10,7 @@ const unsigned int MAX_RESOLUTION = 65535; void init(); + uint16_t unif(const uint16_t& nlevels); uint16_t exponential(const uint16_t& tau_ms, const uint16_t& cutoff, const unsigned int& resolution=MAX_RESOLUTION); }