Pudu programming language
Menu
API reference

Std.Random.text

1 declaration

fn

text: &Std.Random.Generator -> Int -> Str -> (Std.Random.Generator, Str)

This is a callable function.

What it does

Text of a given length drawn from an alphabet.

An empty alphabet answers with empty text, since there is nothing to draw.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.
  • & borrows a value for this call instead of moving or copying it.

Back to Std.RandomSearch related declarations