Jump to content
  • Advertisement
Sign in to follow this  
OhTeeDubb

Random Number Generator?

This topic is 647 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys! I have something of an odd request. I'm wondering if you guys knows of an websites or programs out there that could generate random groups of numbers in 4's between the numbers 1-4. I'm working on something and I need to see all the possibilities of numbers without repeats.

It's kind of hard to explain but I also need them to be places similar to the "D-Pad" on a game controller.

like this for example:
. .2
3. . 4
. .1

(The forum doesn't recognize multiple spaces so I put the '.' in there to get the numbers in the proper formation.

Thank you SO much to anyone that's able to help me or point me in the right direction!

Share this post


Link to post
Share on other sites
Advertisement

What you're after is called permutations of a given set of numbers, and should be easy enough to search for/generate.

 

Once you have the list of permutations, just assign them so that (for example) the first listed number is at the top, and then go clock-wise.

Share this post


Link to post
Share on other sites

What you're after is called permutations of a given set of numbers, and should be easy enough to search for/generate.
 
Once you have the list of permutations, just assign them so that (for example) the first listed number is at the top, and then go clock-wise.


Hey thanks for the quick reply!

I found this (http://textmechanic.com/text-tools/combination-permutation-tools/permutation-generator/)

But now I've run into a different problem.. I need some numbers to repeat themselves.. like 1224 or 2113 and so on and so forth

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!