Hi
I want to throw a random number generator into my program here. I've tried a few ways from other codes online but cant them to work. I've tried some things the webcite ut, can't get them to work with my program. Any suggestions?
#include <iostream>
using namespace std;
int main() {
int n, x;
cout <<"This is a guess the number game." <<endl;
cout <<"This game is also my first progam that I've written on my own." <<endl;
cout <<"It's so amateur that you can play it only once." <<endl;
cout <<"If you try to play it again you'll just be guessin' the same number." <<endl;
cout <<"start guessin':";
n = 13;
cin >> x;
while (x < n){
cout <<"Higher!Try again:";
cin >> x;