private List <string> GenerateAvailableFonts(EWindowsVersion winVersion) { HashSet <string> source = new HashSet <string>(); List <string> list = FakeProfileFactory._allFonts.ToList <string>(); int count = list.Count; int int32 = Convert.ToInt32((double)count * 0.6); for (int index = 0; index < list.Count; ++index) { if (RandomNumber.Between(0, count) < int32) { source.Add(list[index]); } } return(source.ToList <string>()); }
private static string GenerateUserAgent(EWindowsVersion winVersion, bool isX64) { return(string.Format("Mozilla/5.0 ({0}{1}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/{2}.{3} Safari/537.36", (object)FakeProfileFactory.WinVersions[winVersion], (object)FakeProfileFactory.GetX64String(isX64), (object)FakeProfileFactory.ChromeBuildVersion.GetRandValue <string>(), (object)FakeProfileFactory.GenerateRandomChromeVersion(0, 155))); }