#include #include // ランダムな文字列を生成する // int n:生成する文字数 // char *rs:生成した文字列を格納するバッファ( n+1 バイト以上必要) void randstr(int n,char *rs) { static int random=0; if(random==0){ srand((unsigned)time(NULL)); // 乱数の種を蒔く random=1; } const char sml[]="abcdefghijklmnopqrstuvwxyz"; const char lrg[]="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; int i; if(rand()%2) for(i=0;i