Skip to content

Adding the random() function? #33

@cuinjune

Description

@cuinjune

Hi, I'm trying to add arandom() function that returns a random value within the specified range.

But if I use constants to get the random value (e.g. random(1,4)) then it seems to store the first returned value and not actually call random() function again which has to be called each time when I call te_eval().

It seems to work only when I use a variable inside random (e.g. random(0, max)) which makes it called each time when te_eval() is called I think.

Is there any easy way to make the specific function be called each time when te_eval() is called? (without having to use any variable as function arguments)

Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions