summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/auxiliaryFunctions/rand/u16randa.c
diff options
context:
space:
mode:
authorimushir2016-01-18 11:47:44 +0530
committerimushir2016-01-18 11:47:44 +0530
commitbcb2bf1c014a1078f4306cd0111f4e596fe934ce (patch)
tree2aaae4926f8354f89b2061599d62b5d650e1535e /2.3-1/src/c/auxiliaryFunctions/rand/u16randa.c
parent03a27e6884942182e984433fd2ebba7e5f55a4d9 (diff)
downloadScilab2C-bcb2bf1c014a1078f4306cd0111f4e596fe934ce.tar.gz
Scilab2C-bcb2bf1c014a1078f4306cd0111f4e596fe934ce.tar.bz2
Scilab2C-bcb2bf1c014a1078f4306cd0111f4e596fe934ce.zip
added support for uin8,uint16,int8,int16 and not in GeneratedSetup.sci,u8cmd_digital_outs.c,getAllInterfaces.sci,getAllHeaders.sci
Diffstat (limited to '2.3-1/src/c/auxiliaryFunctions/rand/u16randa.c')
-rw-r--r--2.3-1/src/c/auxiliaryFunctions/rand/u16randa.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/2.3-1/src/c/auxiliaryFunctions/rand/u16randa.c b/2.3-1/src/c/auxiliaryFunctions/rand/u16randa.c
new file mode 100644
index 00000000..f5393369
--- /dev/null
+++ b/2.3-1/src/c/auxiliaryFunctions/rand/u16randa.c
@@ -0,0 +1,12 @@
+/* Scilab2C FOSSEE IIT BOMBAY */
+#include "rand.h"
+
+void u16randa(double *out,int size)
+{
+ int i = 0;
+ for(i = 0 ; i < size ; ++i)
+ {
+ out[i] = u16rands();
+ }
+
+}