Показать сообщение отдельно
Старый 14.05.2006, 16:29
etc вне форума Посмотреть профиль Найти все сообщения от etc
  № 8  
Ответить с цитированием
etc
Et cetera
 
Аватар для etc

Регистрация: Sep 2002
Сообщений: 30,787
от 0 до 48 вообще-то =)
Цитата:
random function
random(value:Number) : Number

Deprecated since Flash Player 5. This function was deprecated in favor of Math.random().

Returns a random integer between 0 and one less than the integer specified in the value parameter.

Availability: ActionScript 1.0; Flash Player 4

Parameters
value:Number - An integer.

Returns
Number - A random integer.

Example
The following use of random() returns a value of 0, 1, 2, 3, or 4: random(5);
А вообще, лучше pole1=_root["abc"+(1+Math.round(Math.random()*50))];

з.Ы. И про _root тоже не мешает забыть...