How to select numbers randomly from a matrix so that same random numbers can be selected at the sender side and the receiver side?

How to select numbers randomly from a matrix so that same random numbers can be selected at the sender side and the receiver side in matlab?

1 Comment

What information is the sender allowed to share with the receiver? Indices? Probability? Other data?

Answers (1)

You can set the two sides to use the same pseudorandom generator state, but you have to somehow communicate that state. This is a difficult problem known as Key Exchange

This question is closed.

Asked:

on 30 Jun 2015

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!