def get_random
      if @random_func
        @random_func.call
      else
        if @constraints