How to distribute object randomly over a terrain?

Hi. I’m a noob at scripting.
Can someone help me to distribute (add) object randomly over a terrain please? I’m using blender 2.61. I’ve been trying to do this myself for a while, but i failed in both python and logic brick.
Basically, what i want to achieve was every time a level starts, some objects (like stones, woods, etc.) already distributed randomly over the terrain.
Any help will be apreciated, and thank you in advance :).

It might be a bit better if you yourself did this, that way it would look more realistic (But it would take awhile), and what type of a game are you making?

Thanks for reply. I’m learning to make a mini RTS game. The steering actuator encourage me to do it :D.
I agree if some trees, or boulders, etc. would be more realistic if distributed myself manually. But if i do that to all of those, it would be kind of… boring, to see the same trees at the same location, every time i restart the game. I’m trying to make a little game that still fun to replay.

Well, there are many different ways to go about it, and it depends on the details of what you’re trying to actually accomplish, but generally, you would expand from the simple example that I attached.

Attachments

randomSpawn.blend (400 KB)

Awesome :D, the .blend is working great. This is more or less what i need. Thank you Goran.

Oh, btw, i was watching your vid, Spawn Randomization, as a reference when i was trying to make some kind of this. But i’m so noob, even though you’re using only logic bricks, i still failed to modify your method and apply it into my scene.

Allright, i’ll play around with your .blend and examine it deeper now. I’ll see if i can modify it a little bit to be used in my scene. I believe the problem is SOLVED. But, just in case there is another question i would like to ask regarding this topic after i played with your file, i’ll keep this thread remain “unsolved”.

Thanks again and keep up your great work on your website.
Heh :D, i’m still watching your another tutorial (RTS Controls) when i noticed your post.