using System.Collections; using System.Collections.Generic; using UnityEngine; public class Rand { public static int Range(int min, int max){ return (int)Random.Range(min, max); } public static float Range(float min, float max){ return Random.Range(min, max); } public static float value(){ return Random.value; } public static int GetOption(int count){ return Random.Range(0, count); } public static int GetOption(List odds){ float th=0; List thList=new List(); for(int i=0; i