Cakephp, display random records

The Controller We find a random record, and then we reuse the current view action and template. controllers/posts_controller.php class PostsController extends AppController { var $name = 'Posts'; function random() { $random = $this->Post->find('first',array( 'conditions' => array( 'Post.active'=>1, ), 'order' => 'rand()', )); $this->view($random['Post']['id']); $this->render('view'); } }