Math & Science ⇒ Random seed
Random seed
I would appreciate so much to know about this.
Am using TeXnicCenter and Mavscript016
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Random seed
Since the packages are not familiar do you have an idea of how I can change my randomseed{} value by using using the lcg package.
Its seems better from the documentation. There ain't any documentation for the random package at CTAN.
Random seed
Code: Select all
\documentclass{article}\usepackage[english]{babel}\usepackage{blindtext,lipsum}\usepackage[first=1,last=10]{lcg}\begin{document}The first value is \rand\arabic{rand}.The second value is \rand\arabic{rand}.The third value is \rand\arabic{rand}.The fourth value is \rand\arabic{rand}.\end{document}
(Also, a bit annoyingly, it uses the time/date the file was saved to generate its seed, so you need to resave the file if you want new values the next time you run it.)
Random seed
Code: Select all
$m RandomSeed(76544321)$o$m f1:=RandomPoly(x,4,-1,4) $o
The issue now is to change the randomseed automatically which am only able to change manually but I need automatic.Lets say each user is supposed to get a different equation, then its not easy to keep on changing the randomseed manually all the time.
Thanks for your continued support,I believe we are getting somewhere.
Random seed
However, if you want real/decimal values, I'd suggest looking in to the rangen package, which is built on lcg, and has documentation for generating "real" numbers, and the documentation gives examples of using it to create random exam questions, etc.
I've never used any of these packages, so unless someone else can help you, I think reading the documentation for yourself will be more productive than anything I could offer.