I guess you could try:
    <CFSET NewRandID = #left ( RandRange(1,1000000) & RandRange(1,1000000) 
& RandRange(1,1000000) , 8)#>

  But, that isn't quite identical to the four lines below, because in the 
lines below you are using newRandID1 (a single value) twice, whereas in the 
line above you do not have the opportunity to generate the same value 
twice.  ( if that makes sense).


At 07:53 PM 07/30/2001 -0400, you wrote:




>Anyone know how to do this is one line?
>
>
>
>  <cfset newRanID1 = #RandRange(1,1000000)#>
>  <cfset newRanID2 = #RandRange(1,1000000)#>
>  <cfset NewRandID = '#newRanID1##newRanID2##newRanID1#'>
>  <cfset NewRandID = #left(newrandid,8)#>
>
>
>
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to