Closed jackxxu closed 6 years ago
use Numo::NArray.srand(random_seed)
$ irb -r numo/narray
irb(main):001:0> Numo::NArray.srand(123)
=> nil
irb(main):002:0> Numo::DFloat.new(1).rand
=> Numo::DFloat#shape=[1]
[0.473321]
irb(main):003:0> Numo::NArray.srand(123)
=> nil
irb(main):004:0> Numo::DFloat.new(1).rand
=> Numo::DFloat#shape=[1]
[0.473321]
for example:
I wonder if there can be something like one of the following