Need stdlib for rand().