Gets or sets the randomization seed to use for generating random node positions.
Namespace: MindFusion.Diagramming.Layout
Assembly: MindFusion.Diagramming
C# Copy Code |
---|
public int RandomSeed { get; set; } |
Visual Basic Copy Code |
---|
Public Property RandomSeed As Integer |
An integer value passed as a seed to the random number generator. The default value is 0.
If set to 0, SpringLayout uses the current time as a seed value. Set a value greater than 0 to use a fixed seed. Random numbers are generated when nodes are at the same initial position or when Randomize is enabled. Using a fixed seed helps producing consistent layouts at each run of the Arrange method.