make a for loop
in this loop
randomly place a tree within the given size of your map.
if the tree is lower then a certain height re randomly place it
if the tree collides with another tree re randomly place it.
if these conditions are all met you will end up with trees
placed on your map while not touching and not lower then a given height.
If no-one gives your an answer to a question you have asked, consider:- Is your question clear.- Did you ask nicely.- Are you showing any effort to solve the problem yourself 