use frandom as number generator