Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8983

Add random function to simple

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.16.0
    • camel-core
    • None
    • Unknown

    Description

      We be nice with a random function in simple so you can do random delays during processor or whatnot

      ${random(10)}
      

      To return a random value between 0 and 9.

      And to do with range

      ${random(10,20)}
      

      To select a random number between 10 and 19.

      We may ponder a bit about the upper bound should be inclusive or exclusive?

      Attachments

        Activity

          People

            acosentino Andrea Cosentino
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: