-You have a huge list of words (let’s call it your src)
-You want to pick randomly five elements in your src
-return this array
Then what you have to do is something like that
//To use this you need to specify the template in the class
//Check https://msdn.microsoft.com/library/sz6zd40f.aspx for more infos
T[] sample;
public Start()
{
sample = new T[5]
}
public static void Shufs(T[] arr)
{
for (int i = 0, i < 5, i++)
{
int r = Random.Range(0, arr.Length());
sample *= arr[r];*
} } //then you can use sample field to access your 5-elements array