Files
nushell/crates/nu-std/std-rfc/mod.nu
Andrej Kolčin f015409253 [nu-std] std-rfc/random: add random choice (#16270)
# Description

Adds `random choice` suggested in #16241.

# User-Facing Changes

New `random` module in `std-rfc` with the `choice` subcommand.

# Tests + Formatting

Unsure how do to do tests. Sampling and a histogram should be enough,
but they'll be non-deterministic.

# After Submitting

<!-- If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
-->

---------

Co-authored-by: sholderbach <sholderbach@users.noreply.github.com>
2025-08-04 20:36:28 +02:00

12 lines
331 B
Plaintext

export use conversions *
export use tables *
export use path *
export module clip
export module str
export module iter
export module random
# kv module depends on sqlite feature, which may not be available in some builds
const kv_module = if ("sqlite" in (version).features) { "std-rfc/kv" } else { null }
export use $kv_module *