Hi all.
I'm using the ranshuffle function in oxprob.h
When I change the seed, the first sampled number is the same ever. For
example:
decl n = 5;
for(ci = 1; ci <= 10; ci++){
ranseed(ci);
gd = ranshuffle(n, range(1, n));
for(cj = 0; cj < n; cj++) print("%02d ", guarda[cj]);
println("");
}
The result is:
01 02 04 05 03
01 02 03 05 04
01 03 05 02 04
01 03 04 05 02
01 03 02 04 05
01 04 02 03 05
01 04 03 02 05
01 04 05 02 03
01 05 04 03 02
01 05 03 02 04
Some suggstions?
Thanks,
========================================
Cezar Freitas (ICQ 109128967)
IMECC - UNICAMP
Campinas, SP - Brasil
|