OP RND (v0.3)

From Native Big Data Documentation
Revision as of 23:20, 10 January 2019 by Ignacio (talk | contribs) (Created page with "Category:NBD OP has a set of methods used to generate pseudo-random number. Pseudo random number generators in op are useful for statistics but not for cryptografy. ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


OP has a set of methods used to generate pseudo-random number. Pseudo random number generators in op are useful for statistics but not for cryptografy.


Functions

var s1 = RND.uniform (a1,b1); // generates a random number with a uniform distribution between a1 and a2 
var s2 = RND.normal (a1,a2)   // generates a random number with a normal distribution with a1 mean and a2 std desviation
var s3 = RND.poisson(a);      // generates a random number with a poisson distribution with a parameter 
var s4 = RND.gamma(a);        // generates a random number with a gamma distribution with a parameter 
var s5 = RND.str(n);          // generates a string of n characters. The string can be used as a filenema or a url path.