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
How to compare random values
Author Message
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #15
RE: How to compare random values
one last thing,
<R20> returns a number between 0 and 19?
what about rand(20)? it is the same?
what if i want a number between 0 and 20
<r0,20>??

EDIT:

well here it is in case in the future someone as new as me needs it Smile

a + b + c + d + e = 20
local.a <eval 20-<r0,20>>
local.b <eval <r0,<eval 20-<local.a>>>>
local.c <eval <r0,<eval 20-<local.a>+<local.b>>>>
local.d <eval <r0,<eval 20-<local.a>+<local.b>+<local.c>>>>
local.e <eval 20-<eval <local.a>+<local.b>+<local.c>+<local.d>>>
(This post was last modified: 06-18-2014 09:50 AM by kn4tseb.)
06-18-2014 09:12 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
How to compare random values - kn4tseb - 06-17-2014, 01:28 PM
RE: How to compare random values - XuN - 06-17-2014, 05:58 PM
RE: How to compare random values - kn4tseb - 06-18-2014, 12:05 AM
RE: How to compare random values - Seron - 06-18-2014, 12:50 AM
Re: How to compare random values - Extreme - 06-18-2014, 02:14 AM
RE: How to compare random values - Coruja - 06-18-2014, 02:21 AM
RE: How to compare random values - kn4tseb - 06-18-2014, 02:42 AM
RE: How to compare random values - kn4tseb - 06-18-2014, 07:22 AM
RE: How to compare random values - Extreme - 06-18-2014, 07:45 AM
RE: How to compare random values - Skul - 06-18-2014, 07:31 AM
RE: How to compare random values - kn4tseb - 06-18-2014, 07:51 AM
RE: How to compare random values - Extreme - 06-18-2014, 07:59 AM
RE: How to compare random values - Skul - 06-18-2014, 08:00 AM
RE: How to compare random values - kn4tseb - 06-18-2014, 08:08 AM
RE: How to compare random values - kn4tseb - 06-18-2014 09:12 AM
RE: How to compare random values - XuN - 06-18-2014, 07:19 PM
RE: How to compare random values - Coruja - 06-19-2014, 12:49 AM
RE: How to compare random values - kn4tseb - 06-19-2014, 01:33 PM

Forum Jump:


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