Fixed random number generator

1) Fixed random number generator
2) Added Scons build script
3) Added random number unit test code.

Signed-off-by: Arif <arif@bansberrysg.com>