I am trying to simulate a random dice roll as a basis for a chutes and ladders game
Code:int main { int i = 0, diceroll; while (i>5) { diceroll = 1+rand()%6; i++; } return 0; }
however the numbers get don't seem to be random, it always starts off with 6,6,5.. then its random.