Article View: adobe.scripting.indesign
Article #1899Re: [JS CS3] Check the pattern of a random number given a specific data ?
From: jongware
Date: Wed, 14 Jan 2009 20:40
Date: Wed, 14 Jan 2009 20:40
3 lines
748 bytes
748 bytes
Math to the rescue. You want a random integer div 5. Math.floor(5*(Math.random()*(max-min)+min))/5 should do it.
Technical Details
Message-ID:
<59b783cc.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b783cc.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,c561291f93dd622f X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: jongware@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: [JS CS3] Check the pattern of a random number given a specific data ? Message-ID: <59b783cc.0@webcrossing.la2eafNXanI> Date: Wed, 14 Jan 2009 12:40:03 -0800 References: <59b783cc.-1@webcrossing.la2eafNXanI> Lines: 3 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit