Network devices are using a growing number of 10 Gbit/s links. Such throughput upgrade imposes new challenges on creating high-speed packet generators that can provide real network conditions. Traffic generators implemented as software solutions have challenges in achieving a required performance, as they are commonly using a kernel network stack for packet I/O. We describe different techniques for implementing the Poisson and on-off traffic model in a software-based traffic generator that is using netmap API as fast packet I/O.