Page 212 - Introduction to Programming with Java: A Problem Solving Approach
P. 212

                178
Chapter 5 Using Pre-Built Methods
1.5 1.0 0.5 0.0
1.5 1.0 0.5 0.0
0.3 0.2 0.1
0.0
0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0
    1. Random number for the default continuous uniform distribution
      0.0 0.5
1.0 1.5 2.0 2.5
3.0 3.5 4.0
2. Random number for a scaled and offset continuous uniform distribution
PDF Enhancer
     Apago
0
012345678
3. Random number for a discrete uniform distribution 0.20
0.15 0.10 0.05 0.00
1.5 1.0 0.5 0.0
    0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4. Random number for a discrete triangular distribution
        Figure 5.11
Important types of random number distributions
0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 5. Random number for a continuous exponential distribution
Probability Probability Probability Probability Probability











































































   210   211   212   213   214