- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
//.....
    public final class Random
    {
        static public function _int(min: int, max: int):int
        {
            return min + Math.round( Math.random()*(max - min));
        }
        //.....
        static public function _Bool():Boolean
        {
            return (_int(0, 1) == 1);
        }
        //подброс монеты: орёл
        static public function coinSideEagle(): Boolean
        {
            return _Bool();
        }
        //всё по-честному: решка
        static public function coinSideTail(): Boolean
        {
            return !coinSideEagle();
        }
     }
 Follow us!
 Follow us!