Lotteries as a Public Good: How to Fund a Network State