class_docstr: Spider: a set of rays attached to the origin.
  
  The k-spider consists of k copies of the positive real line
  :math:`\mathbb{R}_{\geq 0}` glued together at the origin [Feragen2020]_.
  
  Parameters
  ----------
  n_rays : int
      Number of rays to attach to the origin.
      Note that zero counts as the origin not as a ray.
  
  References
  ----------
  .. [Feragen2020]  Feragen, Aasa, and Tom Nye. "Statistics on stratified spaces."
      Riemannian Geometric Statistics in Medical Image Analysis.
      Academic Press, 2020. 299-342.
class_docstr_tok: ["Spider",":","a","set","of","rays","attached","to","the","origin",".","The","k-spider","consists","of","k","copies","of","the","positive","real","line",":","math",":","`","\\mathbb","{","R","}","_","{","\\geq","0","}","`","glued","together","at","the","origin","[","Feragen2020","]","_.","Parameters","--","--","--","--","--","n_rays",":","int","Number","of","rays","to","attach","to","the","origin",".","Note","that","zero","counts","as","the","origin","not","as","a","ray",".","References","--","--","--","--","--","..","[","Feragen2020","]","Feragen",",","Aasa",",","and","Tom","Nye",".","``","Statistics","on","stratified","spaces",".","''","Riemannian","Geometric","Statistics","in","Medical","Image","Analysis",".","Academic","Press",",","2020",".","299-342","."]
docstr: Compute a random point of the spider set.
  
  Parameters
  ----------
  n_samples : int
      Number of samples.
      Optional, default: 1.
  
  Returns
  -------
  samples : list of SpiderPoint, shape=[...]
      List of SpiderPoints randomly sampled from the Spider.
docstr_tok: ["Compute","a","random","point","of","the","spider","set",".","Parameters","--","--","--","--","--","n_samples",":","int","Number","of","samples",".","Optional",",","default",":","1",".","Returns","--","--","--","-","samples",":","list","of","SpiderPoint",",","shape=","[","...","]","List","of","SpiderPoints","randomly","sampled","from","the","Spider","."]
code: def random_point(self, n_samples=1):
      r"""Compute a random point of the spider set.
  
      Parameters
      ----------
      n_samples : int
          Number of samples.
          Optional, default: 1.
  
      Returns
      -------
      samples : list of SpiderPoint, shape=[...]
          List of SpiderPoints randomly sampled from the Spider.
      """
      if self.n_rays != 0:
          s = gs.random.randint(low=0, high=self.n_rays, size=n_samples)
          x = gs.abs(gs.random.normal(loc=10, scale=1, size=n_samples))
          x[s == 0] = 0
          return [
              SpiderPoint(stratum=s[k], stratum_coord=x[k])
              for k in range(n_samples)
          ]
      return [SpiderPoint(stratum=0, stratum_coord=0)] * n_samples
  
imports: import geomstats.backend
  from geomstats.geometry.euclidean import Euclidean
  from geomstats.geometry.stratified.point_set import Point, PointSet, PointSetMetric, _vectorize_point, broadcast_lists
label_desc: Use image node_id 3 for calling the Spider obj's underlying member method code with example usage: obj.random_point(n_samples) and returns: unknown, unknown