#include <iostream>
#include <cstdlib>
usingnamespace std;
int main()
{
int m = 0; // number for after get legendary decrease chance
int n = 5; //number for rng
int y = 1 ; //number for turns negative = more
cout << "press enter to try for legendary "; //prompt user to play
while (y < 6) { //also number of turns positive = more
int x = (1 + (rand() % n)); // generates random number/makes it more difficult
cout << "\n" << x; //sees which number it generates
if (cin.get() == '\n') //checks to see if win
if (x == 4){
cout << "you got the legendary weapon";
int m = 1;}
else {
cout << "Try again!";
int m = 0;}
y += 1;
if(m = 1)
int n = n + 100;
}
}