Subject Re: selecting a random record within the db
Even better, it is already in ib_sql.dll