Horje
shuffle function in c Code Example
shuffle function in c
#include <stdlib.h>

void shuffle(int arr[], int size){
    srand(time(0));
    for (int i = 0; i < size; i++) {
        int j = rand() % size;
        int t = arr[i];
        arr[i] = arr[j];
        arr[j] = t;
    }
}




C

Related
How to define Max in define in c Code Example How to define Max in define in c Code Example
c bit access struct Code Example c bit access struct Code Example
arduino knn Code Example arduino knn Code Example
%d in c Code Example %d in c Code Example
c fractional sleep Code Example c fractional sleep Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9