```ruby
class BenchController < ApplicationController
  before_filter :find_records

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

Use 0-9 not 0-8 for random number
user
```ruby
class BenchController < ApplicationController
  before_filter :find_records

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