Skip to content

Instantly share code, notes, and snippets.

@listopad
Last active September 3, 2017 09:43
Show Gist options
  • Save listopad/91d439ea034961272887928421d4312a to your computer and use it in GitHub Desktop.
Save listopad/91d439ea034961272887928421d4312a to your computer and use it in GitHub Desktop.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public class ListFiller : MonoBehaviour
{
void Awake ()
{
var list = Enumerable.Range (0, 10).OrderBy (x => Guid.NewGuid ()).Take (5);
foreach (int i in list) Debug.Log (i);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment