using RetroDev.Random;
using UnityEngine;

public class ExampleRandom : MonoBehaviour
{
    // Example string array
    public string[] names = new string[] {"Peter", "Rein", "Steve" };

    private void Start()
    {
        // Below you'll find how to use the random utilities to return random values for various data types:

        // Color
        Debug.Log(RandomUtil.RandomColor());

        // Random Boolean
        Debug.Log(RandomUtil.RandomBool());

        // Random Integer between min and max
        Debug.Log(RandomUtil.RandomNumber(1, 10));

        // Random Vector3
        Debug.Log(RandomUtil.RandomVector3D(new Vector3(1, 1, 1), new Vector3(10, 10, 10)));

        // Randomc Vector2
        Debug.Log(RandomUtil.RandomVector2D(new Vector2(1, 1), new Vector2(10, 10)));

        // Random Quaternion 2D
        Debug.Log(RandomUtil.RandomRotation2D());

        // Random Quaternion 3D
        Debug.Log(RandomUtil.RandomRotation3D());

        // Random Angle
        Debug.Log(RandomUtil.RandomAngle());

        // Random OnUnitCircle
        Debug.Log(RandomUtil.RandomOnUnitCircle());

        // Random Element in an Array / List
        Debug.Log(RandomUtil.RandomElement(names));
    }


}
