getRandomQuote

Fetches a random Quote from an array of such.

version(WithQuotePlugin)
private
getRandomQuote
(
const Quote[] quotes
,
const string nickname
,
out size_t index
)

Parameters

quotes Quote[]

Array of Quotes to get a random one from.

nickname string

The nickname whose quotes the array contains.

index size_t

out reference index of the quote selected, in the local storage.

Return Value

Type: auto

A Quote, randomly selected.