All I did was copy and paste your code and insert #include<time.h>
at the top so I’m not sure what the issue could be on your end.
#include<iostream>
#include<stdlib.h>
#include<time.h>
int main(){
srand (time(NULL));
int computer = rand() % 3+1;
std::cout << computer; // for checking the random variable
int user = 0;
std::cout << "====================\n";
std::cout << "rock paper scissors!\n";
std::cout << "====================\n";
std::cout << "1) ✊\n";
std::cout << "2) ✋\n";
std::cout << "3) ✌️\n";
std::cout << "shoot! ";
std::cin>>user;
if(computer==user)
{
std::cout<<"Whoa! It is a tie";
}
}