Hacker News new | ask | show | jobs
by loisaidasam 3222 days ago
Here's a SO post w/ a python implementation:

https://stackoverflow.com/questions/10029588/python-implemen...

The accepted answer uses a hard-coded z-value.

In the event that you want a dynamic z-value like the ruby solution offers, I just submitted the following solution:

https://stackoverflow.com/questions/10029588/python-implemen...