public bool TryAddRandomMuscle() { Console.WriteLine("Trying to add random muscle"); Joint jointA = joints[Utils.ProgramRandom.Next(joints.Count)]; Joint jointB = joints[Utils.ProgramRandom.Next(joints.Count)]; if (jointA.tryAddConnection(jointB)) { Console.WriteLine("Adding random muscle"); muscles.Add(Muscle.AddRandomMuscle(jointA, jointB)); return(true); } return(false); }