Показать сообщение отдельно
Старый 14.02.2003, 12:18
SPV вне форума Посмотреть профиль Отправить личное сообщение для SPV Найти все сообщения от SPV
  № 4  
SPV
 
Аватар для SPV

Регистрация: Jan 2000
Адрес: St-Petersburg
Сообщений: 1,229
Отправить сообщение для SPV с помощью ICQ
F1:
------------------------------------------------------------------------------
Math.random

Syntax

Math.random();
Arguments

None.

Description

Method; returns a pseudo-random number between 0.0 and 1.0.

Player

Flash 5 or later. In the Flash 4 Player, the methods and properties of the Math object are emulated using approximations and may not be as accurate as the non-emulated math functions supported by the Flash 5 Player.

See also

random
------------------------------------------------------------
random

Syntax

random();
Arguments

value The highest integer for which random will return a value.

Description

Function; returns a random integer between 0 and the integer specified in the value argument.

Player

Flash 4. This function is deprecated in Flash 5; use of the Math.random method is recommended.

Example

The following use of random returns a value of 0, 1, 2, 3, or 4:

random(5);
See also

Math.random
--------------------------------

x = 1+random(100);

x = 1+int(Math.random()*100);

x = 1+Math.floor(Math.random()*100);
__________________
Two beer or not two beer?...


Последний раз редактировалось SPV; 14.02.2003 в 12:24.