<html>
<head>
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>RANDRANGE</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">RANDRANGE</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title"></span>
<p>
w肳ꂽ 2 ̐lԂ͈̔͂ŋ[ () 𐶐܂B
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">߂l</span>
<p>
[ ()
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">JeS</span>
<p>
Zp֐AZLeB֐
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">֐̃V^bNX</span><pre>RandRange(number1, number2[, algorithm])
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">qXg</span>
<p>
ColdFusion&#160;MX&#160;7: algorithm p[^ǉ܂B
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">֘A</span>
<p>
RandARandomize
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">p[^</span>
<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">gp@</span>
<p>
number1 p[^ number2 p[^܂͕̔ɑ傫ȒlłꍇA錋ʂ̃_ቺ邱Ƃ܂B̖ɂ́A-1,000,000,000 ` 1,000,000,000 ͈̔͊O̐lw肵Ȃ悤ɂ܂B
</p>

<p>
ColdFusion&#160;MX&#160;7 ł́AJCE (Java Cryptography Extension) gpASun JCE ftHgZLeBvoC_܂ Sun Java 1.4.2 ^CCXg[܂B̃voC_ɂ́AÓup[^vɎASY (ftHg̃ASY) ܂܂Ă܂BJCE t[[Nɂ́ÃvoC_邽߂̋@\܂܂Ă܂BAЂł̓T[hp[eB̃ZLeBvoC_ɑ΂eNjJT|[g͒񋟂Ă܂B
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title"></span>
<p>
̗ł́A̒l͈̔͂w肵AKvɉė̃V[hlw肷tH[gp܂Bcfform ̃Rg[ёgpāAftHg͈̔͂w肳A͈̓tB[hɒlݒ肳ÃtB[hlw͈͓̔ɂ邱ƂmF܂BtH[𑗐MƁAV[htB[hɋ̕񂪂ȂǂmF܂BtB[hɒlꍇAR[h͂̒lgpėWFl[^̃V[hݒ肵܂BɁAA\܂B
</p>
<pre>&lt;h3&gt;RandRange ̗&lt;/h3&gt;

&lt;!--- tH[MꂽꍇɌȀs܂B ---&gt;
&lt;cfif IsDefined(&quot;Form.mySeed&quot;)&gt;

   &lt;!--- V[htB[hɋ̕񂪂ȂꍇɌȀs܂B ---&gt;
   &lt;cfif Form.mySeed NEQ &quot;&quot;&gt;
      &lt;cfoutput&gt;
         &lt;b&gt;V[hl : #FORM.mySeed#&lt;/b&gt;&lt;br&gt;
      &lt;/cfoutput&gt;
      &lt;br&gt;

      &lt;!--- Randomize ĂяoāAWFl[^̃V[hݒ肵܂B ---&gt;
      &lt;cfset r = Randomize(FORM.mySeed, &quot;SHA1PRNG&quot;)&gt;
   &lt;cfelse&gt;
      &lt;b&gt;MV[hlȂ&lt;/b&gt;&lt;br&gt;
   &lt;/cfif&gt;

   &lt;!--- 𐶐ĕ\ ---&gt;
   &lt;cfoutput&gt;&lt;p&gt;&lt;b&gt;
      Ԃ RandRange : #RandRange(FORM.myInt, FORM.myInt2, &quot;SHA1PRNG&quot;)#
   &lt;/cfoutput&gt;&lt;/b&gt;&lt;/p&gt;
&lt;/cfif&gt;

&lt;!--- ̃tH[ł cfform ͌؂gpē͔͈͂`FbN܂B ---&gt;
&lt;cfform action = &quot;#CGI.SCRIPT_NAME#&quot;&gt;
&lt;p&gt;͈̔͂͂܂B : From 
&lt;cfinput type = &quot;Text&quot; name = &quot;MyInt&quot; value = &quot;1&quot; 
   RANGE = &quot;-1000000000,1000000000&quot;
   message = &quot;-1,000,000,000 ` 1,000,000,000 ͈͓̔̒l͂ĂB&quot;
   validate = &quot;integer&quot; required = &quot;Yes&quot;&gt;
To 
&lt;cfinput type = &quot;Text&quot; name = &quot;MyInt2&quot; value = &quot;9999&quot; 
   RANGE = &quot;-1000000000,1000000000&quot;
   message = &quot;-1,000,000,000 ` 1,000,000,000 ͈͓̔̒l͂ĂB&quot;
   validate = &quot;integer&quot; required = &quot;Yes&quot;&gt;&lt;/p&gt;
&lt;p&gt;WFl[^̃V[hɎgpl͂ĂB 
&lt;cfinput type = &quot;Text&quot; name = &quot;mySeed&quot; RANGE = &quot;-1000000000,1000000000&quot;
   message = &quot;-1,000,000,000 ` 1,000,000,000 ͈͓̔̒l͂ĂB&quot;
   validate = &quot;integer&quot; required = &quot;No&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;input type = &quot;Submit&quot; name = &quot;&quot;&gt;
&lt;/cfform&gt;
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="NUMBER1ANUMBER2">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">NUMBER1ANUMBER2</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

 </td>
  </tr>
  <tr>
    <td>łBl -2,147,483,648 ` 2,147,483,647 ͈̔͊OłꍇAColdFusion 
ł̓G[܂B


  </td>
  </tr>
  </table>
</div>
<div id="ALGORITHM">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">ALGORITHM</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

 </td>
  </tr>
  <tr>
    <td>(IvV) 𐶐邽߂ɎgpASYłBColdFusion MX ł́A
̃ASYgpÍCuCXg[܂B
<ul>

<li>CFMX_COMPAT: (ftHg) ColdFusion MX ŎgpASYłB</li>

<li>SHA1PRNG: Sun Java SHA1PRNG ASYgpĐl𐶐܂B̃ASYł́AftHg̃ASY_߂邱Ƃł܂B</li>

<li>IBMSecureRandom: IBM WebSphere p̃ASYłBIBM JVM  SHA1PRNG ASYT|[g܂B</li>
</ul>


  </td>
  </tr>
  </table>
</div>

  </body>
</html>
