 ###
 
 mersenne = require 'mersenne'
+util = require '../util'
 
 class Random
   constructor: (initialSeed=0) ->

      when 0 then null
      when 1 then list[0]
      else
      # return single entry
        if count == 1
          list[ @randi(0, list.length) ]


          for i in [0...list.length]
            indices.push i

          util.shuffle(indices)
          result = []
          for i in [0...count]
            result.push list[ indices[i] ]
