need strange symbols in output

i need to create a symbol output from an imput as if the input has been courrupted the out put needs to be the same amout of charecters as the input and the same spacing for example input: hi how are you output: À‰ Æt@ ÇD$ À‰
but with more of these characters and these characters must be randomized
You can use casting:
1
2
3
4
5
char getRandomCharacter()
{
int randASCII = rand() % 256;
return static_cast<char>(randASCII);
}
Topic archived. No new replies allowed.