I like doing programming but I have a roadblock when it comes to math. As sad as it is, I'm probably the worst at math in my programming class. Don't know why. But for fun I'm making a tree algorithm to generate a branching tree graphic that I will use later. The problem I'm having is with simple trigonometry. Each limb will generate 2 more limbs off of it that is 1/2 the size and pointed in a random direction. All I need to do is generate a random number that is the angle the branch is pointing. But when I record the x/y coordinates the angle does not matter, just the starting and ending x/y coordinates. Here is a graphic I've done to illustrate what I'm trying to find-

I've tried drawing some right triangles to see if something would click for me but no luck xD