To make a random triangle, you need 3 random digits that add up to 180˚. Since a triangle’s total angle is 180˚. So the three random digits has to be the angles for the triangle, and if you also follow the pythagorean theorem, you should be able to make a triangle