<%
SQL = "SELECT * FROM firma where order by rand() limit 5;"
Set rs = conn.Execute(SQL)
%>

Bunuda yazdım
<%
SQL = "SELECT * FROM firma where kimlik order by rand() limit 5;"
Set rs = conn.Execute(SQL)
%>

Bu şekilde koydum olmadı ben bu kodu biliyorum daha öncede denemiştim bu access de çalışmıyor sadece mssql de çalışıyor diye duymuştum.