ALGORITHMS that randomize nos

Discussion in 'Programming' started by weknowtheworld, Apr 19, 2007.

  1. #1
    Hi,

    Where can I get ALGORITHMS that can randomize numbers in coldfusion?

    Please do reply... :)
     
    weknowtheworld, Apr 19, 2007 IP
  2. IsRoss()

    IsRoss() Peon

    Messages:
    116
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I am assuming you are talking about the algorithm argument for the RAND function? CF comes with 3 algorithms installed - CFMX_COMPAT (the default), SHA1PRNG, and IBMSecureRandom.

    For example,
    <cfset my_random_number = #Rand("SHA1PRNG")#>
     
    IsRoss(), Apr 19, 2007 IP