projects
/
htsworkflow.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added script front-end for primer-design code
[htsworkflow.git]
/
htswanalysis
/
MACS
/
lib
/
gsl
/
gsl-1.11
/
doc
/
examples
/
rngunif.c
1
#include <stdio.h>
2
#include <gsl/gsl_rng.h>
3
4
int
5
main (void)
6
{
7
const gsl_rng_type * T;
8
gsl_rng * r;
9
10
int i, n = 10;
11
12
gsl_rng_env_setup();
13
14
T = gsl_rng_default;
15
r = gsl_rng_alloc (T);
16
17
for (i = 0; i < n; i++)
18
{
19
double u = gsl_rng_uniform (r);
20
printf ("%.5f\n", u);
21
}
22
23
gsl_rng_free (r);
24
25
return 0;
26
}