I am practicing using the drawing commands, and have gotten a grass background and black happy face that moves around the background.
It's a 10x10 grid of 50 pixels.

I want (at the moment, when i press enter) it to generate a random number of trees (15 ~ 25) at random locations on the background. The program doesn't freak out about anything, and the variables seem to be right (using stop commands) but it's not drawing anything. Here is the code for the "GenerateTrees" command I have for when I press enter.

Code:
    Private Sub GenerateTrees()

        NumberOfTrees = Int(Rnd() * 10) + 15
        For i = 0 To NumberOfTrees - 1
            bmap.MakeTransparent(Color.Fuchsia)
            TreeX = Int(Rnd() * 10) * 50
            TreeY = Int(Rnd() * 10) * 50
            sRect = New Rectangle(0, 50, 50, 50)
            dRect = New Rectangle(TreeX, TreeY, 50, 50)
            G.DrawImage(bmap, TreeX, TreeY, sRect, GraphicsUnit.Pixel)
        Next