>>> >It seems that the int(rand(10)) generate random with replacement.. I'm
>>> >wondering how to generate random number without replacement in perl.
>>>
>>> Could you please explain what you mean by "with/without replacement"?
>>> A number is a number, it doesn't replace anything....
>>
>> These are standard concepts in statistics. Please see the following
>> webpage for the explanations on sampling 'with/without replacement'.
>>
>>
http://www.ma.utexas.edu/users/parker/sampling/repl.htm
JE> Ok. For those like me not familiar with this term: he means random
JE> numbers with and without repetition.
and i told him how to do it. i won't tell him again. it is a simple
problem and hashes solve it.