- Timestamp:
- Feb 12, 2022, 5:31:16 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- 5c216b4, 7d18733
- Parents:
- 0ebbca4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/user/user.tex
r0ebbca4 ra38bbbc 11 11 %% Created On : Wed Apr 6 14:53:29 2016 12 12 %% Last Modified By : Peter A. Buhr 13 %% Last Modified On : Sat Feb 12 1 0:10:11202214 %% Update Count : 537 213 %% Last Modified On : Sat Feb 12 17:04:03 2022 14 %% Update Count : 5376 15 15 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16 16 17 17 % requires tex packages: texlive-base texlive-latex-base tex-common texlive-humanities texlive-latex-extra texlive-fonts-recommended 18 18 19 \documentclass[twoside ,11pt]{article}19 \documentclass[twoside]{article} 20 20 21 21 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% … … 8257 8257 void ?{}( PRNG & prng ); $\C{// random seed}$ 8258 8258 void ?{}( PRNG & prng, uint32_t seed ); $\C{// fixed seed}$ 8259 void set_seed( PRNG & prng, uint32_t seed _); $\C{// set seed}$8259 void set_seed( PRNG & prng, uint32_t seed ); $\C{// set seed}$ 8260 8260 uint32_t get_seed( PRNG & prng ); $\C{// get seed}$ 8261 8261 uint32_t prng( PRNG & prng ); $\C{// [0,UINT\_MAX]}$ … … 8266 8266 Sequential execution is repeatable given the same starting seeds for all ©PRNG©s. 8267 8267 In this scenario, it is useful to have multiple ©PRNG©, \eg one per player or object so a type is provided to generate multiple instances. 8268 \VRef[Figure]{f:SequentialPRNG} shows an example that creates two sequential ©PRNG©s, sets both to the same seed (1009), and illustrates the 3forms for generating random values, where both ©PRNG©s generate the same sequence of values.8268 \VRef[Figure]{f:SequentialPRNG} shows an example that creates two sequential ©PRNG©s, sets both to the same seed (1009), and illustrates the three forms for generating random values, where both ©PRNG©s generate the same sequence of values. 8269 8269 8270 8270 \begin{figure} … … 8603 8603 \end{tabular} 8604 8604 \end{cquote} 8605 \small 8605 8606 8606 \begin{cfa} 8607 8607 Factorial Numbers
Note: See TracChangeset
for help on using the changeset viewer.