Drawing geometric primitives using Monte-Carlo method