seed: Seed for generating random numbers (partitions).
mingr: Minimal allowed group size.
maxgr: Maximal allowed group size.
addParam: This has to be a list with the following parameters (any or all can be missing, then the default values (see usage) are used):
"genPajekPar" - Should the partitions be generated as in Pajek (Batagelj & Mrvar, 2006). If FALSE, all partitions are selected completely at random while making sure that the partitions have the required number of clusters.
probGenMech - Here the probabilities for 4 different generating mechanisms can be specified. If this is not specified, the value is set to c(1/3, 1/3, 1/3, 0) if genPajekPar is TRUE and to c(0, 0, 0, 1) if genPajekPar is FALSE. The first 3 mechanisms are the same as implemented in Pajek (the second one has almost all units in only one cluster) and the fourth is completely random (from uniform distribution).
Returns
A random partition in the format required by optRandomParC. If a network has several modes, then a list of partitions, one for each mode.