JSFiddle - React, Tailwind, and code Playground
JavaScript
arr = ["a","b","c"]
res = ""
for (i = 0; i < 10; i++) {
res += arr[Math.floor(Math.random() * arr.length)]
}
alert(res)
arr = ["a","b","c"]
res = ""
for (i = 0; i < 10; i++) {
res += arr[Math.floor(Math.random() * arr.length)]
}
alert(res)