Add random number example

Signed-off-by: Li Dong <dongli@lasg.iap.ac.cn>