Is there anyway to generate random language shortcode without listing all language shortcodes in C#? I was thinking about creating list with all short codes and using random to choose the random one, but i need to do it without using list or listing all languages.
Code that i am using:
var random = new Random();
var languages = new List<string>{ "en","ak","cz","gu" }; //Many more.., i also need to somehow grab all of them from: https://www.science.co.il/language/Codes.php
int index = random.Next(languages.Count);
Console.WriteLine(list[index]);
Aucun commentaire:
Enregistrer un commentaire