File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
src/main/java/xyz/lejon/r/runnables Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ public class RMathDemo {
2323 int lowerTail = 1 ;
2424 int useLog = 0 ;
2525
26+ rmath. set_seed((int )System . currentTimeMillis(), 0 );
27+
2628 System . out. printf(" Drew standard normal random covariate %f\n " , rmath. rnorm(0.0 , 1.0 ));
2729 double gd = rmath. rgamma(shape, scale);
2830 System . out. printf(" Drew gamma random variate %f\n " , gd);
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ public static void main(String[] args) {
1212 int lowerTail = 1 ;
1313 int useLog = 0 ;
1414
15+ rmath .set_seed ((int )System .currentTimeMillis (), 0 );
16+
1517 System .out .printf ("Drew standard normal random covariate %f\n " , rmath .rnorm (0.0 , 1.0 ));
1618 double gd = rmath .rgamma (shape , scale );
1719 System .out .printf ("Drew gamma random variate %f\n " , gd );
You can’t perform that action at this time.
0 commit comments