module FFaker::RandomUtils
def fetch_sample(list, options = {})
* Pass `count: n` in options argument, where `n` is an integer, to
* Returns one random item from `list`.
Generator so that the results are deterministic.
Performs Array#sample on `list` using a the internal Random Number
def fetch_sample(list, options = {}) if (count = options.delete(:count)) list.sample(count, random: FFaker::Random) else list.sample(random: FFaker::Random) end end