/usr/share/doc/ruby-gsl/examples/random/rng.rb is in ruby-gsl 2.1.0.3+dfsg1-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #!/usr/bin/env ruby
require("gsl")
r = GSL::Rng.alloc
10.times {
p r.uniform
}
__END__
#include GSL
#require 'gsl/gsl_rng'
r = GSL::Random::Rng.alloc
r.set(2)
p r.get
p r.get
p r.max
p r.get
p r.get
r2 = GSL::Random::Rng.alloc
p r2.uniform
p r2.uniform
__END__
rf = GSL::Random::Rng.alloc
p rf.uniform
p rf.uniform
p rf.name
p gsl_rng_types_setup
|