Lets say I have four variables each hoding a number 1 to 6. Now these number are randomly generated, so there may be a few numbers repeated.
i was wondering how i could automatically find the variable with the lowet value so i could exclude that variable from the sequence. and if there are multipul numbers with the lowest value it would only drop one of them.
Example:
// Sequence of Random Numbers
$sequence = $one . $two . $three . $four
$one = 3;
$two = 5;
$three = 2; <-- lowest value
$four = 5;
// Some type of function to find and drop lowest number
// then produce new sequence
$sequence = $one . $two . $four
Is there any type of function that can do this? or how can i code a function to find and drop the lowest number???
All help is appreciated.