>>569
ありがとうございます
種のことはよくわかりませんが序盤で1回srand()してrand()して4で割った余りで場合わけしてるのですが、その中でまたrand()を%2したいので
srand()をしないとrand()は同じ数が出ると聞いたので
(今そうなっているわけじゃないですが)4で割って2余る中でまたrand()を呼んで%2しても0に決まってるので、確率2分の1をsrand()せずにrand()%2では不味いので毎回呼ぶのかなあと思ったのですが大丈夫なのでしょうか?

ちなみに一行目はInitializeComponent(void)の中でパネルがいっぱい設定されてるところの最後に入れています
this->panel1->AutoScroll = true;
this->panel1->Controls->Add(this->pictureBox1);
this->panel1->Controls->Add(this->label1);
this->panel1->Font = (gcnew System::Drawing::Font(L"MS UI Gothic", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(128)));
this->panel1->Location = System::Drawing::Point(16, 1);
this->panel1->Name = L"panel1";
this->panel1->Size = System::Drawing::Size(922, 421);
this->panel1->TabIndex = 3;
this->panel1->MouseWheel += gcnew System::Windows::Forms::MouseEventHandler(this, &Form1::panel1_MouseWheel);
その後パネルはthis->panel1->Location = System::Drawing::Point(16, 1);
this->panel1->Size = System::Drawing::Size(933, 326);
しかいじってません(`;ω;´)