spot on, thanks
~M
>>hi all,
>>i am using rand() to generate a random number for a bingo game that i use for my scouts. the only problem is that it always comes out in the same sequence. then i entered a seed value of the second but now it comes out in an order like, 22, 24, 26, 29, 32, 34, 36 or there abouts. need a genuinely random number so that the game can be played over and over
>>~M
>
>Did you put rand(-1) before your code?
Go raibh maith agat
~M