how to select k no. of nodes with probability p(say p=0.25) out of n(say n=100) randomly generated nodes and those k nodes shown as red colored in whole figure?
How do I randomly select k points from N points in MATLAB?