this function generates #num random numbers using the Linear congruential generator through a vector with size num. the seed for this generator is set automatically with each time the function is called. this generator is a fast and simple method that is used in many professional programs like C,C++, java, excel and etc. the constants which are used in this function are the same as the ones used in GCC.
1 | rgen(num)
|
1 | rgen(2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.