I want the function to randomly select elements from the array without repetition
function RandomSelect() {
let names = ["Yazeed", "Ammar", "Marwan", "Othman", "Sameh", "Amro", "Ibraheem"];
let paragraph = document.getElementById("demo1");
let text = " ";
for (let i = 0; i < 4; i++) {
let selectedName = names[Math.floor(Math.random() * names.length)];
text+= "This is " + selectedName + "<br>";
}
paragraph.innerHTML = text;
}