add debug rand memory