I have an array with list of elements.
app.controller("MainController", function($scope){
$scope.names= [
{
value: "q1"
},
{
value: "q2"
},
{
value: "q3"
}
];
});
I need to take randomly two elements and assign to a new array. how can i do?