Fixing a bug n randomPrim which specifying number of proposals