nobsY: added randomized function