Hi
My goal is to build a C function that perform a uniform sampling. I mean that I have a big file with a lot of data and I'd like to take just some data samples accordly the uniform distribution.
Es.
file1: a b c d e f g h i l m n o p q
An example would be to flip a coin for each letter and select all letters
for which the coin showed the head.
I have used the srand() system call, but it is not uniform.
Can anyone suggest a way to start?
Thanks
D