Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## timetable.util
Class Math

    java.lang.Object
      |
      +--timetable.util.Math

public class Math
extends java.lang.Object

Některé matematické operace

Constructor Summary
`Math()` Konstruktor.

Method Summary
`static int` | `max2(int a, int b)` Maximum ze dvou hodnot
`static int` | `min2(int a, int b)` Minimum ze dvou hodnot
`static int` | `random(int limit)` Náhodné číslo mezi 0 a limitem.

Methods inherited from class java.lang.Object
`, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Math

    public Math()

  Konstruktor.

Method Detail

### random

    public static int random(int limit)

  Náhodné číslo mezi 0 a limitem.
  Returns:
    náhodné číslo x, 0 <= x < limit

### max2

    public static int max2(int a,
                           int b)

  Maximum ze dvou hodnot
  Parameters:
    `a` - hodnota A
    `b` - hodnota B
  Returns:
    maximum z A a B

### min2

    public static int min2(int a,
                           int b)

  Minimum ze dvou hodnot
  Parameters:
    `a` - hodnota A
    `b` - hodnota B
  Returns:
    minimum z A a B

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD