Thank you so much man. I really appreciate it, even if I don't
understand the single-line glory of
set.push(dat.splice(Math.random()*dat.length|0, 1));
It is pure JavaScript. I assume there is no "better" way to use jQuery?
Problem:
I am creating a "teaser page" for a site that is coming soon. We have
a list of 20 sentences that describe the site. We want to select 5 of
those, at random and without redundancy, and display them in a div.
The display part seems easy enough, and should look something like
this:
$(docum
2 matches
Mail list logo