docstr: Parameters
  ----------
  self
       An N-D Array representing the probability of a 1 event.
       Each entry in the Array parameterizes an independent
       Bernoulli distribution. Only one of logits or probs should
       be passed in.
  logits
      An N-D Array representing the log-odds of a 1 event.
      Each entry in the Array parameterizes an independent Bernoulli
      distribution where the probability of an event is
      sigmoid(logits). Only one of logits or probs should be passed in.
  
  shape
      If the given shape is, e.g '(m, n, k)', then 'm * n * k' samples are drawn.
      (Default value = 'None', where 'ivy.shape(logits)' samples are drawn)
  device
      device on which to create the array 'cuda:0', 'cuda:1', 'cpu' etc.
      (Default value = None).
  
  dtype
      output array data type. If ``dtype`` is ``None``, the output array data
      type will be the default floating-point data type. Default ``None``
  seed
      A python integer. Used to create a random seed distribution
  
  out
      optional output array, for writing the result to.
      It must have a shape that the inputs broadcast to.
  
  Returns
  -------
  ret
      Drawn samples from the Bernoulli distribution
docstr_tok: ["Parameters","--","--","--","--","--","self","An","N-D","Array","representing","the","probability","of","a","1","event",".","Each","entry","in","the","Array","parameterizes","an","independent","Bernoulli","distribution",".","Only","one","of","logits","or","probs","should","be","passed","in",".","logits","An","N-D","Array","representing","the","log-odds","of","a","1","event",".","Each","entry","in","the","Array","parameterizes","an","independent","Bernoulli","distribution","where","the","probability","of","an","event","is","sigmoid","(","logits",")",".","Only","one","of","logits","or","probs","should","be","passed","in",".","shape","If","the","given","shape","is",",","e.g","'","(","m",",","n",",","k",")","'",",","then","'m","*","n","*","k","'","samples","are","drawn",".","(","Default","value","=","'None","'",",","where","'ivy.shape","(","logits",")","'","samples","are","drawn",")","device","device","on","which","to","create","the","array","'cuda:0","'",",","'cuda:1","'",",","'cpu","'","etc",".","(","Default","value","=","None",")",".","dtype","output","array","data","type",".","If","``","dtype","``","is","``","None","``",",","the","output","array","data","type","will","be","the","default","floating-point","data","type",".","Default","``","None","``","seed","A","python","integer",".","Used","to","create","a","random","seed","distribution","out","optional","output","array",",","for","writing","the","result","to",".","It","must","have","a","shape","that","the","inputs","broadcast","to",".","Returns","--","--","--","-","ret","Drawn","samples","from","the","Bernoulli","distribution"]
code: def bernoulli(
      self: ivy.Container,
      /,
      *,
      logits: Optional[
          Union[float, ivy.Array, ivy.NativeArray, ivy.Container]
      ] = None,
      shape: Optional[
          Union[ivy.Shape, ivy.NativeShape, ivy.Container]
      ] = None,
      device: Optional[
          Union[ivy.Device, ivy.NativeDevice, ivy.Container]
      ] = None,
      dtype: Optional[
          Union[ivy.Dtype, ivy.NativeDtype, ivy.Container]
      ] = None,
      seed: Optional[Union[int, ivy.Container]] = None,
      out: Optional[ivy.Container] = None,
  ) -> ivy.Container:
      """
  
      Parameters
      ----------
      self
           An N-D Array representing the probability of a 1 event.
           Each entry in the Array parameterizes an independent
           Bernoulli distribution. Only one of logits or probs should
           be passed in.
      logits
          An N-D Array representing the log-odds of a 1 event.
          Each entry in the Array parameterizes an independent Bernoulli
          distribution where the probability of an event is
          sigmoid(logits). Only one of logits or probs should be passed in.
  
      shape
          If the given shape is, e.g '(m, n, k)', then 'm * n * k' samples are drawn.
          (Default value = 'None', where 'ivy.shape(logits)' samples are drawn)
      device
          device on which to create the array 'cuda:0', 'cuda:1', 'cpu' etc.
          (Default value = None).
  
      dtype
          output array data type. If ``dtype`` is ``None``, the output array data
          type will be the default floating-point data type. Default ``None``
      seed
          A python integer. Used to create a random seed distribution
  
      out
          optional output array, for writing the result to.
          It must have a shape that the inputs broadcast to.
  
      Returns
      -------
      ret
          Drawn samples from the Bernoulli distribution
  
      """
      return self.static_bernoulli(
          self,
          logits=logits,
          shape=shape,
          device=device,
          dtype=dtype,
          seed=seed,
          out=out,
      )
  
file_path: ivy/ivy/data_classes/container/experimental/random.py
imports: from typing import Optional, Union, List, Dict
  import ivy
  from ivy.data_classes.container.base import ContainerBase
label_desc: Use image node_id 8 for calling the _ContainerWithRandomExperimental obj's underlying member method code with example usage: obj.bernoulli() and returns: self