Need help with easy scripting

Hello, I need help with something! I appreciate all help I can get! Thanks in advance//Tim

I want my object to spawn at random X position within for example -10 and 10. How can I make that happen? I also dont want any exact numbers, I want it to spawn at random time between for example 30 seconds and 45 seconds. This is how my script look like right now (i already made my object moving):

function Update () { transform.Translate(0, -0.1, 0 * Time.deltaTime); }

If you can add the code I need to make my spawn thingy work I would be awesome! Also some explanation to what you did =)

You might want to check this page out it has some explanation about random class and might be useful for what you want to do: Random.Range

There's several questions actually

You will need "this" for random values:

[Random.value][2]  

and this for "spawning" anything:

Instantiate method

I won't write the code, like your last post said, you wanted to learn. Well you can't learn programming without doing it sorry, that'd be bad Q&A aswell for this site.