HRANDFIELDReturn random fields from a hash; a negative count allows repeats, WITHVALUES pairs each with its value.
| Syntax | HRANDFIELD key [count [WITHVALUES]] |
| Group | hash |
| Arity | -2 |
| Since | 6.2.0 |
| Flags | readonly |
| Complexity | O(count) for the positive form (partial Fisher-Yates over a materialised field list), O(|count|) for the negative form |
| Redis compatibility | full |