The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random function
Author Message
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #9
RE: Random function
(07-11-2012 07:07 AM)darksun84 Wrote:  IF ((<FENCING> == 100.0) && (<EVAL RAND(10)> == 1)

The rightmost statement can be written in this way : (<R(10)> == 1)
So you can skip to write "eval" before random everytime!

What is the EVAL used for?


Ok Extreme, Rand(9) = 1 it's 10% chance, rly? Tongue

Thanks to all! ;Big Grin

[Image: 2hy9q0y.png]
07-11-2012 12:39 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Random function - Lazarus - 07-11-2012, 05:49 AM
RE: Random function - RanXerox - 07-11-2012, 06:14 AM
RE: Random function - Lazarus - 07-11-2012, 07:24 AM
RE: Random function - darksun84 - 07-11-2012, 07:07 AM
RE: Random function - Lazarus - 07-11-2012 12:39 PM
RE: Random function - RanXerox - 07-11-2012, 07:44 AM
RE: Random function - Anarch Cassius - 07-11-2012, 07:45 AM
RE: Random function - darksun84 - 07-11-2012, 07:47 AM
RE: Random function - Extreme - 07-11-2012, 09:38 AM
RE: Random function - Extreme - 07-11-2012, 01:05 PM
RE: Random function - darksun84 - 07-11-2012, 04:52 PM
RE: Random function - Lazarus - 07-12-2012, 03:30 AM
RE: Random function - Extreme - 07-12-2012, 03:33 AM
RE: Random function - Lazarus - 07-12-2012, 03:37 AM
RE: Random function - Extreme - 07-12-2012, 03:47 AM
RE: Random function - Lazarus - 07-12-2012, 03:50 AM
RE: Random function - Extreme - 07-12-2012, 03:54 AM
RE: Random function - Lazarus - 07-12-2012, 04:17 AM
RE: Random function - Lazarus - 07-12-2012, 10:54 AM
RE: Random function - Extreme - 07-12-2012, 11:03 AM
RE: Random function - WRWR - 07-12-2012, 06:56 PM
RE: Random function - darksun84 - 07-12-2012, 07:53 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)