add frandom support

Signed-off-by: Lens-F <tnoah12@gmail.com>