public override void Randomize() { int arraylength = -1; Random rand = new Random(); int strlength; byte[] strbuf, myByte; //groups arraylength = rand.Next(10); if (groups == null) { groups = new Messages.dynamic_reconfigure.Group[arraylength]; } else { Array.Resize(ref groups, arraylength); } for (int i = 0; i < groups.Length; i++) { //groups[i] groups[i] = new Messages.dynamic_reconfigure.Group(); groups[i].Randomize(); } //max max = new Messages.dynamic_reconfigure.Config(); max.Randomize(); //min min = new Messages.dynamic_reconfigure.Config(); min.Randomize(); //dflt dflt = new Messages.dynamic_reconfigure.Config(); dflt.Randomize(); }
public override void Randomize() { int arraylength = -1; Random rand = new Random(); int strlength; byte[] strbuf, myByte; //config config = new Messages.dynamic_reconfigure.Config(); config.Randomize(); }