tiengdonhoarira
Senior Member
Nếu dùng 1 seed thì số ngẫu nhiên là một dẫy số có thể lặp lại được (không thay đổi)
Mọi người biết cách lấy số nth của một dẫy số pseudorandom không? (dùng c++ thì càng tốt )
Trên stackoverflow thì tìm được bài
https://stackoverflow.com/questions...-a-pseudo-random-number-generator-in-c-that-s
https://stackoverflow.com/questions...-of-rand-directly-without-having-to-call-rand
dùng discard. Và chắc là chậm (Nếu số cần lấy nth là 1.0E+9, thì nó phải skip lâu mối lấy được số )
Mọi người biết cách lấy số nth của một dẫy số pseudorandom không? (dùng c++ thì càng tốt )
Trên stackoverflow thì tìm được bài
https://stackoverflow.com/questions...-a-pseudo-random-number-generator-in-c-that-s
https://stackoverflow.com/questions...-of-rand-directly-without-having-to-call-rand
dùng discard. Và chắc là chậm (Nếu số cần lấy nth là 1.0E+9, thì nó phải skip lâu mối lấy được số )
