add random.cpp

Signed-off-by: unknown <joe.physwf@hotmail.com>