Alıntı
<%

Function ReOrderArrayQuickNDirty(ByVal aArray)
Dim iUpper, iLower, iLoop, iSwapPos, varTmp
iUpper = UBound(aArray)
iLower = LBound(aArray)
Randomize Timer

'Loop through the array, randomly swapping values
For iLoop = iLower to iUpper

'Get an array index to swap
iSwapPos = Int(Rnd * (iUpper + 1))


'Swap the current element with the element at iSwapPos
varTmp = aArray(iLoop)
aArray(iLoop) = aArray(iSwapPos)
aArray(iSwapPos) = varTmp
Next
ReOrderArrayQuickNDirty = aArray 'Return the jumbled array
End Function





Dim aSites, dizi_sira
ReDim aSites(3)



SQL = "SELECT * FROM firma"
Set rs = conn.Execute(SQL)



for i=1 to 3
if rs.eof then exit for



aSites(i) = rs("firma")


rs.movenext
next
rs.close
set rs = nothing



'Jumble up the array and display the new, random order!
aSites = ReOrderArrayQuickNDirty(aSites)
For iLoop = LBound(aSites) to UBound(aSites)
Response.Write aSites(iLoop) & "<BR>"
Next


%>
Arkadaşlar hallettim tam olarak yapmaya çalıştığım buydu biraz fazla uğraştım ama sonunda çalıştı. Lazım olan arkadaş varsa bullanabilir bol bol.