class BenchController < ApplicationController
  before_filter :find_records

  private
  def find_records
    @records = (1..500).map do |n|
      rand(9)
    end
  end
end

class BenchController < ApplicationController
  before_filter :find_records

  private
  def find_records
    @records = (1..500).map do |n|
      rand(10)
    end
  end
end

Use 0-9 not 0-8 for random number
Use 0-9 not 0-8 for random number
