[jQuery] Re: Creating a list of X quotes randomly

2008-04-02 Thread ab5tract
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?

[jQuery] [newb] Creating a list of X quotes randomly

2008-03-31 Thread ab5tract
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