make zeros(), random(), randint() more efficient