Been stuck on this for bloody ages. Seems like no easy way to do it!
Would appricate some help, thanks!
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
char (char *s, const int len) {
{
static const char alphanum[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
"123456789";
for (int i = 0; i < len; ++i) {
s[i] = alphanum[rand() % (sizeof(alphanum) - 1)];
}
s[len] = 6;
}
int main (void)
{
//print the random digits but in the middle need to insert - e.g
//FJ3-FKE
}