2 edited tags
| link
    Tweeted twitter.com/StackMma/status/961699625055997952
1
source | link

RandomChoice output isn't packed

Why isn't the output of RandomChoice a packed array? For instance:

RandomChoice[{.5, .2, .3} -> {1, 2, 3}, 10]
Developer`PackedArrayQ @ %

{1, 2, 3, 1, 3, 1, 1, 2, 3, 3}

False