Blackjack: Replaced magic number with len(x)
This commit is contained in:
parent
d511e6c4c2
commit
74f02e4537
@ -46,8 +46,7 @@ void shuffel (int *array, int n){
|
||||
|
||||
int i, j, tmp;
|
||||
|
||||
|
||||
for (i=n; i>-1 ;i--){
|
||||
for (i=n; i >= len(array) ;i--){
|
||||
|
||||
if (i != 0){
|
||||
j = rand() % i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user