add frandom support from flar2