How to generate a random 16 bit number , having fixed number of "1" s in it . Like 16bit number with 5 "1"s in it, example "0000-1010-1110-0000"

Dave,

I also have a simialr issue and have a new post for the same.
But what is “item” you are referring to here ??

Thanks!