why not write something like this
Code:
<?php
if( rand(0,1) ) {
$roll = rand(2,6);
print "You rolled a $roll";
}
else {
print "You rolled a 1";
}
?>
That way you're mathematically garunteed to roll 1 fifty percent of the time, thanks to the first if statement. But taking 1-3 out of a six sided roll is also 50%.