Formatted lottery algorithm post.