Jump to content

randomly choose between defined values


hatrick

Recommended Posts

You could use the arg() function in combination with your floor() function above, which acts basically as the index selector:

arg("0 15 30 45", floor(fit01(rand($PT), 0, 3)))

Your values of 0-3 will then map to the corresponding elements you want to choose from.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...