One bug in numbers fixed; C program "random-test.c" for valgrind check.
Plug one memory leak.