Beginning of implementation of randist (lot of warnings for the moment...)