Sha256: cd1491e887163e078b20201b3d7800408329c84cd09e1b52905462b2b232a883

Contents?: true

Size: 862 Bytes

Versions: 6

Compression:

Stored size: 862 Bytes

Contents

#!/usr/bin/env ruby
require("gsl")
include GSL

names = ["default", "mt19937", "mt19937_1999", "mt19937_1998", "ranlxs0", "ranlxs1",
"ranlxs2", "ranlxd1", "ranlxd2", "ranlux", "ranlux389", "cmrg", "mrg", "taus", "taus2",
"gfsr4", "rand", "random_bsd", "random8_bsd", "random32_bsd", "random64_bsd",
"random128_bsd", "random256_bsd", "random_libc5", "random_glibc2", "rand48", "ran0",
"ran1", "ran2", "ran3", "ranf", "ranmar", "r250", "tt800", "vax", "transputer",
"randu", "minstd", "uni", "uni32", "slatec", "zuf", "borosh13", "coveyou",
"fishman18", "fishman20", "fishman2x", "knuthran2", "knuthran", "lecuyer21",
"waterman14"]

names.each do |name|
  r = Rng.alloc(name)
  printf("%s %s\n", name, r.name)
end

names.each do |name|
  name2 = "gsl_rng_" + name
  r = Rng.alloc(name)
  printf("%s %s\n", name, r.name)
end


r = Rng.alloc(Rng::KNUTHRAN)
p r.name

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
gsl-2.1.0.3 examples/random/generator.rb
gsl-2.1.0.2 examples/random/generator.rb
gsl-2.1.0.1 examples/random/generator.rb
gsl-2.1.0 examples/random/generator.rb
gsl-1.16.0.6 examples/random/generator.rb
rb-gsl-1.16.0.5 examples/random/generator.rb