You can do:
diceroll1() + diceroll2()
since the compiler sees it as value that diceroll1() returns + value of diceroll2();
More Related Contents:
- Why do people say there is modulo bias when using a random number generator?
- Generating random integer from a range
- Generate random numbers uniformly over an entire range
- Random float number generation
- Recommended way to initialize srand?
- Weighted random numbers
- rand() returns same values when called within a single function
- Generate random numbers using C++11 random library
- Why does rand() yield the same sequence of numbers on every run?
- Using stdlib’s rand() from multiple threads
- Same random numbers every loop iteration
- generate random double numbers in c++
- Need for predictable random generator
- What is the optimal algorithm for generating an unbiased random integer within a range?
- If we seed c++11 mt19937 as the same on different machines, will we get the same sequence of random numbers
- How do you generate a random double uniformly distributed between 0 and 1 from C++?
- How do I scale down numbers from rand()?
- How often should I call srand() in a C++ application?
- What’s the Right Way to use the rand() Function in C++?
- Consistent pseudo-random numbers across platforms
- What is the best way to generate random numbers in C++?
- Getting big random numbers in C/C++
- Program is generating same random numbers on each run? [duplicate]
- srand(time(NULL)) generating similar results [duplicate]
- Generating a random integer from a range
- Why is the new random library better than std::rand()?
- Does std::mt19937 require warmup?
- C++11 random numbers
- C++ uniform_int_distribution always returning min() on first invocation
- Generate N random numbers within a range with a constant sum