new rand = random(50);//number inside the () is the max number, so it will choose from 0-50(or 1-50 not sure).ShowPlayerDialog(playerid, rand, bla bla bla bla)