Slight edits to randA and rdot functions