Random.value returns "error CS0117: Random does not contain a definition for value"

Hello.

Any ideas why, when I try to generate random number between 0 and 1 by using Unity’s Random class:

// Code is stripped to show only problematic area.

using UnityEngine;
using System.Collections;
using System.Collections.Generic;

	
	public class CCameraOrbit : MonoBehaviour {
		void LateUpdate()
		{
			float r = Random.value;
		}
	}

It returns me an error:
Scripts/CCameraOrbit.cs(151,42): error CS0117: Random' does not contain a definition for value’

That code compiles fine when I try it. Do you have your own custom class called Random that could be causing a name conflict? Try using:

float r = UnityEngine.Random.value;