「うーぱ」はシュタゲネタ
「うーぱ」はシュタゲネタ
size_t Rand(size_t n){
// 0 ~ (n-1)までの整数をランダムに出力する
return x;
}
class G_Oracle{
void Drop();
}
void G_Oracle::Drop(){
size_t x = Rand(101);
if(x < 20){
cout << "緑うーぱ" << endl;
}else if(x < 40){
cout << "青うーぱ" << endl;
}else if(x < 60){
cout << "黄うーぱ" << endl;
}else if(x < 80){
cout << "桃うーぱ" << endl;
}else if(x < 100){
cout << "橙うーぱ" << endl;
}else{
cout << "メタルうーぱ" << endl;
}
}
int main(){
G_Oracle gacha;
// 5回回してみる
gacha.Drop();
gacha.Drop();
gacha.Drop();
gacha.Drop();
gacha.Drop();
}