time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (2668B)


      1 
      2 {{alias}}( a, b, c[, options] )
      3     Returns an iterator for generating pseudorandom numbers drawn from a
      4     triangular distribution.
      5 
      6     If an environment supports Symbol.iterator, the returned iterator is
      7     iterable.
      8 
      9     Parameters
     10     ----------
     11     a: number
     12         Minimum support.
     13 
     14     b: number
     15         Maximum support.
     16 
     17     c: number
     18         Mode.
     19 
     20     options: Object (optional)
     21         Options.
     22 
     23     options.prng: Function (optional)
     24         Pseudorandom number generator (PRNG) for generating uniformly
     25         distributed pseudorandom numbers on the interval `[0,1)`. If provided,
     26         the `state` and `seed` options are ignored. In order to seed the
     27         returned iterator, one must seed the provided `prng` (assuming the
     28         provided `prng` is seedable).
     29 
     30     options.seed: integer|ArrayLikeObject<integer> (optional)
     31         Pseudorandom number generator seed. The seed may be either a positive
     32         unsigned 32-bit integer or, for arbitrary length seeds, an array-like
     33         object containing unsigned 32-bit integers.
     34 
     35     options.state: Uint32Array (optional)
     36         Pseudorandom number generator state. If provided, the `seed` option is
     37         ignored.
     38 
     39     options.copy: boolean (optional)
     40         Boolean indicating whether to copy a provided pseudorandom number
     41         generator state. Setting this option to `false` allows sharing state
     42         between two or more pseudorandom number generators. Setting this option
     43         to `true` ensures that a returned iterator has exclusive control over
     44         its internal state. Default: true.
     45 
     46     options.iter: integer (optional)
     47         Number of iterations.
     48 
     49     Returns
     50     -------
     51     iterator: Object
     52         Iterator.
     53 
     54     iterator.next(): Function
     55         Returns an iterator protocol-compliant object containing the next
     56         iterated value (if one exists) and a boolean flag indicating whether the
     57         iterator is finished.
     58 
     59     iterator.return( [value] ): Function
     60         Finishes an iterator and returns a provided value.
     61 
     62     iterator.PRNG: Function
     63         Underlying pseudorandom number generator.
     64 
     65     iterator.seed: Uint32Array|null
     66         Pseudorandom number generator seed.
     67 
     68     iterator.seedLength: integer|null
     69         Length of generator seed.
     70 
     71     iterator.state: Uint32Array|null
     72         Generator state.
     73 
     74     iterator.stateLength: integer|null
     75         Length of generator state.
     76 
     77     iterator.byteLength: integer|null
     78         Size (in bytes) of generator state.
     79 
     80     Examples
     81     --------
     82     > var it = {{alias}}( 0.0, 1.0, 0.3 );
     83     > var r = it.next().value
     84     <number>
     85     > r = it.next().value
     86     <number>
     87 
     88     See Also
     89     --------
     90