title: How to select random element using angularjs?
body: <p>I use ng-repeat below  : </p>
  
  <pre><code>&lt;div ng-repeat="quote in quotes"&gt;
          {{quote.value}}
  &lt;/div&gt;
  </code></pre>
  
  <p>to iterate over a quotes variable : </p>
  
  <pre><code>app.controller("MainController", function($scope){
      $scope.quotes = [
          {
              value: "q1"
          },
          {
              value: "q2"
          },
  
      ];
  });
  </code></pre>
  
  <p>I would like to select just one random element from this quotes variable instead of iterating over the entire array. Is there a directive in angualrjs I can use to achieve this ?</p>