Return-Path: Delivered-To: apmail-httpd-test-dev-archive@www.apache.org Received: (qmail 59962 invoked from network); 19 Aug 2004 22:53:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Aug 2004 22:53:38 -0000 Received: (qmail 61430 invoked by uid 500); 19 Aug 2004 22:53:37 -0000 Delivered-To: apmail-httpd-test-dev-archive@httpd.apache.org Received: (qmail 61320 invoked by uid 500); 19 Aug 2004 22:53:37 -0000 Mailing-List: contact test-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: test-dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list test-dev@httpd.apache.org Received: (qmail 61303 invoked by uid 99); 19 Aug 2004 22:53:36 -0000 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_ENDS_IN_NUMS,HTML_20_30,HTML_IMAGE_ONLY_24,HTML_MESSAGE X-Spam-Check-By: apache.org Received: from [217.12.10.65] (HELO web25205.mail.ukl.yahoo.com) (217.12.10.65) by apache.org (qpsmtpd/0.27.1) with SMTP; Thu, 19 Aug 2004 15:53:33 -0700 Message-ID: <20040819225331.62535.qmail@web25205.mail.ukl.yahoo.com> Received: from [212.40.252.158] by web25205.mail.ukl.yahoo.com via HTTP; Fri, 20 Aug 2004 00:53:31 CEST Date: Fri, 20 Aug 2004 00:53:31 +0200 (CEST) From: =?iso-8859-1?q?stock=20christian?= Subject: RE: fixed range for random variables To: test-dev@httpd.apache.org In-Reply-To: <3C3CC417DE5AEF49B36CFDD8EDDF9DEB037B13@CNET149.cnet.cnwk> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2020846701-1092956011=:61524" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --0-2020846701-1092956011=:61524 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit yo no entiendo nada de su mail o usted me manda eso en Espa�ol o frances gracias si no no me manda mas message je ne comprend rien a votre mail ou vous m'ecrivez en Esapgnol ou en Francais si non je me passe de vos mail merci Guy Ferraiolo wrote: Is this in the source archive now? Thanks! Guy -----Original Message----- From: Jacek Prucia [mailto:jacek.prucia@acn.waw.pl] Sent: Wednesday, May 12, 2004 9:37 AM To: test-dev@httpd.apache.org Subject: fixed range for random variables Really nifty flood feature is the ability to initialize variable to random value. Using following construct: ${=name} inside requesttemplate causes flood to create variable 'name', and assign it a value obtained by calling rand/lrand48/random. Consider a typical scenario, where you would like to fetch some item (say article) from database using random index. Here's an example: responsetemplate="http://www.example.com/getArticle?id={=art_id} The problem is that range for random values is 0 - RAND_MAX (which is 2147483647 on my system). Not every database out there can be proud to have (calls random...) 27667 articles handy. So we need fixed range for random variables, which is what I have already written. The problem is how we integrate this into flood. Right now the range can be specified as: 5:24 -12:79 :41 (means 0:41) 123: (means 123:RAND_MAX) Natural choice would be to use following construct for assigning fixed range: ${5:24=name} This just extends existing concept, but also look's kinda odd. I would like to replace it with more general syntax: ${name=rand(5:24)} Is it okay with everybody? Please speak up if that violates anything. regards -- Jacek Prucia --------------------------------- --0-2020846701-1092956011=:61524--