public PlainTimestamp random() {

        try {
            // use UTC-offset for internal conversion only
            MomentInterval interval = this.toCanonical().atUTC();
            return interval.random().toZonalTimestamp(ZonalOffset.UTC);
        } catch (IllegalStateException ise){
            throw new IllegalStateException(
                "Cannot get random timestamp in an empty or infinite interval: " + this,
                ise);
        }

    }
public PlainTimestamp random ( ) { try { MomentInterval interval = this . toCanonical ( ) . atUTC ( ) ; return interval . random ( ) . toZonalTimestamp ( ZonalOffset . UTC ) ; } catch ( IllegalStateException ise ) { throw new IllegalStateException ( "Cannot get random timestamp in an empty or infinite interval: " + this , ise ) ; } }
/*[deutsch]
Liefert einen Zufallszeitstempel innerhalb dieses Intervalls. </p>

@return  random timestamp within this interval
@throws  IllegalStateException if this interval is infinite or empty or if there is no canonical form
@see     #toCanonical()
@since   5.0