I seem to be quite stuck on this one... I have even re-written this post several times trying to explain what I want to do!

The code I have written so far, compiles without any trouble on Bloodsehd Dev-C++. But... It just sits there doing nothing, just a flashing cursor in the dos box. I have narrowed this down to my random part of the code.

Code:
// lets start generating what stars we have
    
    for (char startype001;startype001==65,66,67,71,72,76,78,82,83,86,87,88,89,112,42;)
    {
      srand(time(0));
      startype001 = rand()%256+1;
    
    char star001 = startype001;
    }
As you can see, those are the ascii values I want, the others I do not want, and if rand turns one up that is not one of those, I want it to try another number. Once I do have a correct ascii value from the list, I then want it to become a char value, and then onwards towards the rest of my code (which works fine).

Can anyone help with this?