Code example for Random

Methods: setSeed

0
     * Sets the seed of the internal random number generator.  May be used to provide repeatable 
     * experiments. 
     */ 
    public void setRandomSeed(long seed) 
    { 
        random.setSeed(seed);
    } 
 
    /** 
     * Sets the number of new 'small-world' connections (outgoing edges) to be added to each vertex. 
     */ 
    public void setConnectionCount(int num_connections)
    { 
        if (num_connections <= 0)
        { 
            throw new IllegalArgumentException("Number of new connections per vertex must be >= 1");
        } 
        this.num_connections = num_connections;
    } 
 
Contextual code suggestions in your IDE  Get Codota for Java