add srand() to generator random pixel data