If this helps, here is the actual code for just getting the numbers, but like I said, it always has the possibilty of selecting the same number more than once.
$greyout is coming from a switch that tells it how many words will be greyedout(omitted) depending on other things
//get random numbers
$cntr=1;
$randword=array();
while ( $cntr <= $greyout )
{
$randword["$cntr"] = rand(0,49);
}
//this is the part that I can do to make each number distinct
//get random numbers
$cntr=1;
$randword=array();
while ( $cntr <= $greyout )
{
$randword["$cntr"] = rand(0,49);
if ( $cntr > 1 )
{
$prev=$cntr-1;
while ( $randword["$cntr"] == r1["$prev"] )
{
$randword["$cntr"] = rand(0,49);
}
}
}
Is this pretty much all I can do, or is there some kind of other command/function/etc.?
Thanks for your time and help guys