AnyDice

highest of NUMBER and NUMBER

This function yields the highest of the two NUMBERs.

Examples

output [highest of 2 and 3]
output [highest of d6 and 4]
output [highest of d4 and d6]

Do it yourself

function: highest of A:n and B:n {
 if A > B { result: A }
 result: B
}