>>431
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main(void)
{
int i, j, k[101] = {0}, pos;

srand(time(NULL));

for(i=0; i<1000; i++) {
for(j=0, pos=0; j<100; j++) pos += rand() % 2 ? 1 : -1;
k[(pos+100)/2]++;
}
for(i=0; i<=100; i++) {
printf("%3d:%3d:", i * 2 - 100, k[i]);
for(j=0; j<k[i]; j+=2) putchar('*');
putchar('\n');
}

return 0;
}