You can introduce some ordering into randomness by specifying a seed. Using this, subsequent calls will give you the opportunity to re-order.
. , MySQL,
@photos = Photo.order('rand(0.5)').paginate(:per_page => 12, :page => params[:page])
0,5 - rand().
, Postgres setseed(). , . , , .