Jump to content
Macro Express Forums
TsunamiZ

Make random variable not repeat the previous X numbers in a row?

Recommended Posts

Curious, can a function like this be built into Macro Express (to make it easier to work with and change)? How about add an option to set random variables to not repeat the last X generated numbers in a row? Useful for making some random things seem more random. Or when we need to create non consecutive numbers.

Share this post


Link to post
Share on other sites

How about add an option to set random variables to not repeat the last X generated numbers in a row? Useful for making some random things seem more random. Or when we need to create non consecutive numbers.

The moment you try to alter what the next random number is, it is obviously no longer a random number. Oh for some clear thought!

Share this post


Link to post
Share on other sites

On a side note, the environment variable %RANDOM% expands to a random decimal number between 0 and 32767. It's been supported since DOS days!

 

In MEP, you can read this value via Variable Set String -> Set from Environment Variable

Share this post


Link to post
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.

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.

Loading...

×
×
  • Create New...