Passive scalar fluctuations with and without a mean gradient: A numerical study