Random recordsets

Discussion in 'ASP General' started by polilop, Nov 25, 2005.

  1. polilop

    polilop Guest

    I have a query to a database that returns some recordsets. What i need to do
    is pick 5 random recordsets from those retreved from the query???
     
    polilop, Nov 25, 2005
    #1
    1. Advertising

  2. polilop

    Evertjan. Guest

    polilop wrote on 25 nov 2005 in microsoft.public.inetserver.asp.general:

    > I have a query to a database that returns some recordsets. What i need
    > to do is pick 5 random recordsets from those retreved from the
    > query???


    Put them [their ID] in an array,
    randomly take one and label that arrayitem,
    replace the array with one without the labeled one,
    do the above 5 times.


    --
    Evertjan.
    The Netherlands.
    (Replace all crosses with dots in my emailaddress)
     
    Evertjan., Nov 25, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. AFN
    Replies:
    5
    Views:
    411
    dilipdotnet at apdiya.com
    Feb 11, 2004
  2. Sky
    Replies:
    2
    Views:
    369
  3. Working with recordsets

    , Jan 7, 2005, in forum: Python
    Replies:
    2
    Views:
    273
    Steve Holden
    Jan 8, 2005
  4. globalrev
    Replies:
    4
    Views:
    774
    Gabriel Genellina
    Apr 20, 2008
  5. VK
    Replies:
    15
    Views:
    1,180
    Dr J R Stockton
    May 2, 2010
Loading...

Share This Page