I think it is 1/N

let N=6 that means rand(6)= takes values 0-5 i.e 6 values.
rand(m)=6 values
rand(n)=6 values
total combinations 6*6=36 values set but among dem array will change only
for
(0,0)(1,1)(2,2)(3,3)(4,4)(5,5)(6,6)=6values of N

So 6/36=1/6

If we generalize it 1/N

correct me if i'm wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to