def _randdm(pnts):
 if (pnts >= 2):
  D = np.random.rand(((pnts * (pnts - 1)) / 2))
 else:
  raise ValueError('The number of points in the distance matrix must be at least 2.')
 return D

def _randdm ( pnts ) : if ( pnts >= 2 ) : D = np . random . rand ( ( ( pnts * ( pnts - 1 ) ) / 2 ) ) else : raise ValueError ( 'The number of points in the distance matrix must be at least 2.' ) return D
generates a random distance matrix stored in condensed form .