```ruby
class HomeController < ApplicationController
  def show
    offset = (Asciicast.featured.count * rand).to_i
    @asciicast  = Asciicast.featured.offset(offset).first || @asciicasts.first
  end
end
```

Use decorator for asciicast on homepage
user
```ruby
class HomeController < ApplicationController
  def show
    offset = (Asciicast.featured.count * rand).to_i
    asciicast = Asciicast.featured.offset(offset).first || @asciicasts.first
    @asciicast = AsciicastDecorator.new(asciicast)
  end
end
```
assistant