![]() |
Random Numbers | Index << >> |
Generate ⍵ random numbers selected from ⍳≢⍺ according to the weights ⍺ , a vector of real numbers greater than 0. For example, if t←7 5 6 4 7 2 ran 1e6 then in t , 1 should occur roughly as often as 5 and 3.5 times as often as 6 . Dyalog Version 16.0 Features in Depth, Dyalog ’17, 2017-09-10; exercise 1. |