code: def sampling_random(n, seed=None):
      """
      Return a subset of randomly selected items.
  
      Parameters
      ----------
      n : int
          Number of items to return.
      seed : int
          Number used to initialize a pseudo random number generator.
  
      Returns
      -------
      `FeatureSpec`
          Random sample specification.
  
      Examples
      --------
      .. jupyter-execute::
          :linenos:
          :emphasize-lines: 10
  
          import numpy as np
          from lets_plot import *
          LetsPlot.setup_html()
          np.random.seed(27)
          mean = np.zeros(2)
          cov = [[.9, -.6],
                 [-.6, .9]]
          x, y = np.random.multivariate_normal(mean, cov, 10000).T
          ggplot({'x': x, 'y': y}, aes(x='x', y='y')) + \\
              geom_point(sampling=sampling_random(1000, 35))
  
      """
      return _sampling("random", n=n, seed=seed)
  
file_path: lets-plot/python-package/lets_plot/plot/sampling.py
imports: from .core import FeatureSpec
label_desc: Use image node_id 1 for calling a global function with example usage: sampling_random(n, seed) and returns: _sampling