updated v16 and added rand for v11