diff --git a/blackjack/blackjack.c b/blackjack/blackjack.c index f8bdd2b..29a97aa 100644 --- a/blackjack/blackjack.c +++ b/blackjack/blackjack.c @@ -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;