Help language development. Donate to The Perl Foundation

Math::Libgsl::Random cpan:FRITH last updated on 2020-03-01

examples/raw-random2.raku
#!/usr/bin/env raku

# See "GNU Scientific Library" manual Chapter 18 Random Number Generation, Paragraph 18.13

use lib 'lib';
use Math::Libgsl::Random::Raw;
use Math::Libgsl::Constants;

my gsl_rng $r = mgsl_rng_setup(DEFAULT);
printf "%.5f\n", gsl_rng_uniform($r) for ^10;
gsl_rng_free($r);