NPE fix of simple randoms