ma gli id delle immagini sono progressivi?
cmq prova:
codice:sql="select id_img from immagini order by id_img asc" rs.open sql,conn,1,1 arrid=rs.getrows() rs.close randomize id_img=int(ubound(arrid)*rnd()) sql="SELECT file_img FROM Immagini where id_img=" & arrid(id_img) rs.open sql,conn,1,1 if not rs.eof then images=rs(0) rs.close:set rs=nothing erase arrid response.write images