Returns a random number between 0.0 [inclusive] and 1.0 [inclusive] (Read Only).
Both 0.0 and 1.0 may be returned by this function.
// Prints something between 0 and 1print(Random.value);
using UnityEngine;using System.Collections;public class example : MonoBehaviour { void Example() { print(Random.value); }}
import UnityEngineimport System.Collectionsclass example(MonoBehaviour): def Example(): print(Random.value)