private static string _RandomStarName(int seed, StarData starData) { Random random = new Random(seed); int seed1 = random.Next(); double num1 = random.NextDouble(); double num2 = random.NextDouble(); if (starData.type == EStarType.GiantStar) { if (num2 < 0.400000005960464) { return(NameGen.RandomGiantStarNameFromRawNames(seed1)); } return(num2 < 0.699999988079071 ? NameGen.RandomGiantStarNameWithConstellationAlpha(seed1) : NameGen.RandomGiantStarNameWithFormat(seed1)); } if (starData.type == EStarType.NeutronStar) { return(NameGen.RandomNeutronStarNameWithFormat(seed1)); } if (starData.type == EStarType.BlackHole) { return(NameGen.RandomBlackHoleNameWithFormat(seed1)); } if (num1 < 0.600000023841858) { return(NameGen.RandomStarNameFromRawNames(seed1)); } return(num1 < 0.930000007152557 ? NameGen.RandomStarNameWithConstellationAlpha(seed1) : NameGen.RandomStarNameWithConstellationNumber(seed1)); }