Added random constructor using barycentric formula