Implemented sys_get_random_number
Fixed assigning of the generated number
Merge pull request #802 from tambry/sys_get_random_number

Implemented sys_get_random_number