|
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 1
print(Random.value);
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Example() {
print(Random.value);
}
}
import UnityEngine
import System.Collections
class example(MonoBehaviour):
def Example():
print(Random.value)