public void SetRandom() { if (Checkbox.IsPresent) { Checkbox.Set(true); } else if (Select.IsPresent) { Select.Set(Select.Options[Randomizer.GetInt(0, Select.Options.Count - 1)].Value); } else if (TextInput.IsPresent) { TextInput.SetRandom(); } else if (DateInput.IsPresent) { DateInput.SetRandom(); } else if (EmailInput.IsPresent) { EmailInput.Set(Randomizer.GetString("{0}@{0}.com")); } }