class MoviesController < ApplicationController def index @choices, @movies = Movie.all, [] (0..10).each{ |num| @movies.append(@choices.sample()) } end end