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

2008-04-02 Thread RobG
On Apr 3, 9:49 am, ab5tract <[EMAIL PROTECTED]> wrote: > 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)); set.push(...) Calls the push method of set, which is an array, with the resu

[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] Re: Creating a list of X quotes randomly

2008-03-31 Thread RobG
On Apr 1, 9:36 am, ab5tract <[EMAIL PROTECTED]> wrote: > 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 pa