[ create a new paste ] login | about

Link: http://codepad.org/YXbO6924    [ raw code | output | fork ]

C, pasted on Jan 8:
1
2
3
4
5
6
7
8
9
10
11
void main()
{
    char pass[10];
    int i;
    srand (time(NULL));
    for(i = 0;i < sizeof(pass);i++)
    {
        pass[i] = '!' + rand() % ']';
    }
    printf("%s\n",pass);
}


Output:
1
A.YVC:j%/,


Create a new paste based on this one


Comments: