STEINGEN/include/random_groups.h
2024-12-24 16:23:07 +01:00

17 lines
416 B
C

#ifndef RANDOM_GROUPS_H
#define RANDOM_GROUPS_H
#include <stdlib.h>
#include <stdio.h>
// Struct for representing groups
typedef struct {
unsigned int *group; // Pointer to an array of group members
unsigned int size; // Number of members in the group
} Group;
// Function to generate random groups
void generate_random_groups(unsigned int n, unsigned int k, Group **groups);
#endif // RANDOM_GROUPS_H