Awkl
Loading...
Searching...
No Matches
rnd.awk File Reference

Namespaces

namespace  rnd
 

Functions

auto rnd::random (X, n, R)
 
bool rnd::randBool ()
 Get random uniform boolean.
 
number rnd::randU64 (sys)
 Get random uniform 64-bit unsigned integer.
 
number rnd::randRange (a, b)
 Get random uniform integer ~U[a,b] or ~U[1,a].
 
auto rnd::randRange2 (A, B)
 Random uniform integer in two disjointed ranges.
 
string rnd::shuffle (string x)
 

 
unassigned rnd::shuffle (array A)
 Shuffle indexed array in-place uniformly.
 
char rnd::choice (string x)
 Get random uniform character from string.
 
scalar rnd::choice (array A)
 Get random uniform element from array.
 
string rnd::randString (string s=str::alnum, number n=8)
 Get uniformly random string.
 
string rnd::randString (number n=8)
 Get uniformly random string consisting of certain alphanumeric characters.
 

Variables

string rnd::rng = "rand"