clustering/singleton/api/src/main/java/org/wildfly/clustering/singleton/election/RandomSingletonElectionPolicy.java
@Override
    public Node elect(List<Node> nodes) {
        int size = nodes.size();
        return (size > 0) ? nodes.get(this.random.nextInt(size)) : null;
    }
@Override
    public Node elect(List<Node> nodes) {
        int size = nodes.size();
        return (size > 0) ? nodes.get(this.random.nextInt(size)) : null;
    }
@ Override public Node elect ( List < Node > nodes ) { int size = nodes . size ( ) ; return ( size > 0 ) ? nodes . get ( this . random . nextInt ( size ) ) : null ; }
{@inheritDoc}
{