ae ~master (2024-01-05T13:09:51Z)
Home
Dub
Repo
sample
ae
utils
array
Select and return a random element from the array.
ref
auto ref
sample
(
T
)
(
T
[]
arr
)
Meta
Source
See Implementation
ae
utils
array
aliases
queuePush
enums
OnEof
functions
as
asort
auniq
contains
containsAt
countSort
eat
elementIndex
emptySlice
fromBytes
get
getExpand
indexOf
indexOfElement
isIdentical
isIn
isOneOf
list
memcmp
memmove
nonNull
padRight
pluck
putExpand
queuePeek
queuePeekLast
queuePop
removeAll
removeFirst
repeatOne
sample
shift
skipUntil
slice
sliceIndex
slicesOver
split1
splitEmpty
splitWithPrefix
splitWithPrefixAndSuffix
splitWithSuffix
stackPeek
stackPop
stackPush
staticArray
toArray
unshift
vector
vectorAssign
properties
asBytes
asSlice
asStaticBytes
asUnitStaticArray
bytes
structs
NormalizedArray
templates
afilter
amap
eatUntil
mapNull
skipWhile
toStaticArray
Select and return a random element from the array.