class Spark::Command::Shuffle


Shuffle

Public Instance Methods

rng() click to toggle source
# File lib/spark/command/basic.rb, line 127
def rng
  Random.new(@seed)
end
run(iterator, *) click to toggle source
# File lib/spark/command/basic.rb, line 122
def run(iterator, *)
  iterator.shuffle!(random: rng)
  iterator
end