Предполагается, что это консольное приложение:
#include "windows.h"
void gotoxy(int x, int y)
{
COORD coord;
coord.X = x; coord.Y = y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_H ANDLE), coord);
}
void PaintcharOnRandomLocation(const char c)
{
srand(0);
int x = rand(79);
int y = rand(24);
gotoxy(x,y);
putch(c);
}