[][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

OverviewFunction signatureExample call + response
Random BASE62 string of exact lengthrandid_str(len: i32)randid_str(5) -> "bWk9D"
Random padded i32 string of exact lengthrandid_i32(len: i32)randid_int(5) -> "00396"



Generates a random padded i32-based String according to the length.


Generates a random BASE62 String of a given length.