OK, the Unique part makes sense if you're using it as some kind of identifier, but why does it need to be random? The problem with asking for something to be simultaneously Random and Unique is that Random by definition does not, and can not, prevent the occurance of duplicate numbers. Thus, you would have to retain a memory of every number handed out and retry whenever you do get a duplicate. <i>This spoils the randomness of the numbers generated</i>, at least in a strict cryptographic sense, but if all you're after is an opaque identifier, it probably won't hurt.