fixed bugs about use my_random() to generate random_pair[].

Signed-off-by: shines77 <gz_shines@msn.com>