1 component rand; 2 option userspace; 3 4 pin out float out; 5 license "GPL"; 6 ;; 7 #include <unistd.h> 8 9 void user_mainloop(void) { 10 while(1) { 11 usleep(1000); 12 FOR_ALL_INSTS() out = drand48(); 13 } 14 } 15