I have to generate a "unique Random Number" in a Wireless sensor network which works on the principle of Gossiping.
The requirements are:
- Each node has to generate a unique Random Number, without having any shared knowledge of what other nodes have generated.
- The Distribution of the generated Random number should be uniform with respect to each other.
- It would be preferable if the range of the generated random number is around 10-16 bits or may be lesser.
The limitations are:
- One node has no idea what number the other nodes in the network are generating.
- Implementation in C, C++.
I also have the provision of using a unique seed for random number generation. the seed could be any number in the range 0-2^15.
If there is no way of generating such numbers, then it would be helpful if there is any method by which I can meet some of the above requirements.
If you can suggest me some way to achieve this result it would be really helpful.