Metron, Inc. Interview Question

Write a function that generates random points in a circle given a center and a radius. Use that function to estimate the value of pi. Determine if a number is a power of three.