Posts: 3,368
Threads: 195
Joined: Jan 2003
That looks like the first clumsy solution........................
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Posts: 82
Threads: 1
Joined: Aug 2003
I used that swap technique to shuffle the cards in my blackjack game, thanks
.
LinkMaster Sab
Posts: 3,288
Threads: 167
Joined: Nov 2001
why not.....
Untested.
Code:
defint a-z
Dim A(1 to 50)
for i=1 to 50
A(i)=i
Next i
for I=1 to 50
Rand%=1+int(rnd*50)
Swap A(i), A(rand%)
Next i
Posts: 3,368
Threads: 195
Joined: Jan 2003
*Aims his Gauss rifle at relsoft.....*
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.