add random number generator function in class ImageData