char: add frandom support