random   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/core/adt.xtm

Implementation

(bind-func random:[!a,List{!a}*]*
  (lambda (lst)
    (let ((lgth (length lst))
          (idx:i64 (random lgth)))
      (nth lst idx))))


Back to Index

Similar Entries

  • PARAM_RANDOM    scheme
  • PARAM_RANDOM    scheme
  • generate_And_Wrap_Pseudorandom_DNA_Sequence    xtlang
  • generate_random_vao    xtlang
  • get_LCG_Pseudorandom_Number    xtlang
  • pc:random    scheme
  • random    scheme
  • random-next    scheme
  • xt_pcg32_random    xtlang
  • xt_pcg32_random_r    xtlang
  • xt_pcg32_srandom    xtlang
  • xt_pcg32_srandom_r    xtlang