Random nunber

Hi i am trying to get unity to choose a random number between 1-4. i then have to set this number to display like the text in a timer. And then i have to Instantiate the game object. Can any body help me get going with this? i am so stuck at the moment, so any help would be greatly appreciated.

I need to:
1.Choose the random number
2.Set the text to display from that number
3.Instantiate the game object

displayObject.textVariable = Random.Range( min, max );
Instantiate( referenceToAPrefab );

The referenceToAprefab i am having trouble understanding, could you explain it by anychance?

Are you saying that you want to instantiate a different GameObject based on the random result?

You could do something as simple as:

if (randomVar == 1) 
	Instantiate(item1);
else if (randomVar == 2)
	Instantiate(item2);
else if (randomVar == 3)
	Instantiate(item3);
else if (randomVar == 4)
	Instantiate(item4);

I want the game to chose a random number between 1-4. I want it to then display this number between 1-4 like it does with the timer. These numbers correspond to a game-object the player had to find, so i guess i need the game to know which game-object its sending the player to find.

Then script it in a similar way to what we sampled here. It really isn’t all that complex, but it’s specific to what your game is. Your best bet then is to probably improve your scripting capability. Read up here to get started: http://forum.unity3d.com/threads/34015-Newbie-guide-to-Unity-Javascript-(long)