Data360 Analyze

 View Only
  • 1.  Alternative for random() function in Data3Sixty

    Posted 12-10-2019 07:56

    We have tried to use the random() function form the Jython and Python language but does not work. Our goal is to get a random number between 0 and 1. Is there an alternative? Thanks in advance :) 



  • 2.  RE: Alternative for random() function in Data3Sixty

    Employee
    Posted 12-10-2019 08:20

    Could you clarify what you mean whey you say they don't work? Here is an example of its use within the Generate Data node.

     

     

    And the corresponding output values:

     

     

     

    Attached files

    Generate_Randomm_Numbers_432 - 10 Dec 2019.lna

     



  • 3.  RE: Alternative for random() function in Data3Sixty

    Employee
    Posted 12-10-2019 08:44

    The random module also provides a range of other number generators e.g. to provide uniform, gaussian and logarithmic distributions, see the Python documentation for the random module for details.