using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace MoreMountains.Tools
{
///
/// Array extensions
///
public static class MMArrayExtensions
{
///
/// Returns a random value inside the array
///
///
///
///
public static T MMRandomValue(this T[] array)
{
int newIndex = Random.Range(0, array.Length);
return array[newIndex];
}
}
}