I am making a quiz app in react native, it has this array of objects in which each object contains a question statement,choices and the correct choice. There will be total 15 objects in this, but i require a new array that contains only 5 of the objects of this array. They should be selected at random everytime i start the quiz. How to get that array, help
const questions = [
new quizQuestions(
'What is capital of Pakistan?',
['Karachi', 'Islamabad', 'Lahore', 'Peshawar'],
'Islamabad',
),
new quizQuestions(
'What is capital of India?',
['delhi', 'Islamabad', 'zcjzj', 'Peshawar'],
'delhi',
),
new quizQuestions(
'What is capital of Pakistan?',
['Karachi', 'Islamabad', 'Lahore', 'Peshawar'],
'Islamabad',
),
]