Help for this page

Select Code to Download


  1. or download this
    PDL::srandom(42);    # not PDL->srandom(42)
    $r = PDL->random();  # not PDL::random();
    
  2. or download this
    # Sets the seed of the base generator uniquely between workers.
    # The new seed is computed using the current seed and ID value.
    ...
    
       Math::Random::MT::Auto::set_seed($_new_seed);
    }