[−][src]Crate randid
Randid (pronounced like random but with -id
instead of -om
) is a minimalistic,
web-safe library for generating customisable IDs for use in primarily web
applications. The generated IDs are not guarenteed to be unique however.
Common functions
Overview | Function signature | Example call + response |
---|---|---|
Random BASE62 string of exact length | randid_str(len: i32) | randid_str(5) -> "bWk9D" |
Random padded i32 string of exact length | randid_i32(len: i32) | randid_int(5) -> "00396" |
Functions
randid_i32 | Generates a random padded i32-based String according to the length. |
randid_str | Generates a random BASE62 String of a given length. |