File: randommt.yo

package info (click to toggle)
bobcat 6.02.02-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,960 kB
  • sloc: cpp: 18,954; fortran: 5,617; makefile: 2,787; sh: 659; perl: 401; ansic: 26
file content (61 lines) | stat: -rw-r--r-- 1,962 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
includefile(include/header)

COMMENT(replace 'classname' by the name of the new class)

COMMENT(manpage, section, releasedate, archive, short name)
manpage(FBB::RandomMT)(3bobcat)(_CurYrs_)(libbobcat-dev__CurVers_)
       (Random Generator using std::mt19937)

manpagename(FBB::RandomMT)(Class template generating random numbers)

manpagesynopsis()
    bf(#include <bobcat/randommt>)nl()
    Linking option: tt(-lbobcat)

manpagedescription()
    The class template tt(RandomMT) uses the tt(std::mt19937) Mercenne Twister
to produce random numbers. The class template has one template type parameter,
which can be any integral or floating point type. By default tt(size_t)-valued
random numbers are generated.

includefile(include/namespace)

manpagesection(INHERITS FROM)
    -

manpagesection(CONSTRUCTORS)
    itemization(
    itb(RandomMT<typename Type = size_t>::RandomMT(Type minimum,
                                           Type maximum, size_t mtSeed))
       The tt(Type) template type parameter can be any integral or floating
        point type. If not specified tt(size_t) is used. The parameters
        tt(minimum) and tt(maximum) define the range of the generated random
        values. tt(minimum) must be less or equal to tt(maximum), or an
        exception is thrown. The tt(mtSeed) parameter is used to initialize
        (seed) the tt(mt19937) Mercenne Twister.
    )

    The default copy and move constructors and assignment operators are
        available.

manpagesection(OVERLOADED OPERATORS)
    itemization(
    itb(Type operator()())
        The function call operator returns the next random value.
    )


manpagesection(EXAMPLE)
    verbinclude(../../randommt/driver/driver.cc)

manpagefiles()
    em(bobcat/randommt) - defines the class interface

manpageseealso()
    bf(bobcat)(7), bf(irandstream)(3bobcat), bf(rand)(3),
    bf(randbuf)(3bobcat), bf(srand)(3)

manpagebugs()
    None Reported.

includefile(include/trailer)