Realistic star

I am curious if anyone has some source code i can look at that creates a star with 5 points (i am guessing putting some triangles together) but am having no luck. What i want to do with them is have them start rather small (far away) then grow in size (making them look as though they are coming towards you). Also they will be coming out in random numbers thinking anything from 3 - 10 or so. If anyone could help me out it would be a great help, just tring to learn this language and would like to look at something “real” so i can see how things are done.

Thanks for your time.