pga
Class Random

java.lang.Object
  |
  +--pga.Random

public class Random
extends java.lang.Object

Trida pro vytvareni nahodnych cisel.

Protoze GA jsou velmi zavisle na vlastnostech generatoru nahodnych cisel, lze tento generator zmenit prepsanim teto tridy - v celem baliku se vola pouze tento generator.


Constructor Summary
Random()
           
 
Method Summary
static int number(int upBound)
          Vrati nahodne cele cislo v rozmezi 0 - zadana mez.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Random

public Random()
Method Detail

number

public static int number(int upBound)
Vrati nahodne cele cislo v rozmezi 0 - zadana mez.

Parameters:
upBound - horni mez
Returns:
nahodne cislo 0 (vcetne) - upBound (ne vcetne)