file_name='B.bmp'; key=double(imread(file_name))./256; rand('state',key);
??? Error using ==> rand State must be a double scalar.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)