Random function.
Less than and greater than compare operations.