thanks again for a quick reply..
Just gonna try both the method you just said..
Still have a query though,,, do we need an array?
Yes, you need to pull the values out one by one into your own array.
https://mega.nz/#!VZNVgC6C!PPO8Z_E__Hlt ... lxDr8Z_Yso
This is what I've done but the value gets repeated
It's hard to tell what's going on in a screen shot. Can you post what you have so far?
rah: You can also check the How do I FAQ and see there are some examples on the subject :
[quote:1jefy7ll]Obtain non-repeating numbers from a fixed set - LINK
[quote:1jefy7ll]Obtain random numbers without repeat - LINK
[quote:1jefy7ll]Another way to obtain random numbers without repeat (lottery like) - LINK
[quote:1jefy7ll]Randomize an array without duplicates/repeat numbers - LINK
Thanks a lot blackhornet & Kyatric for your time
and I'm currently going through your links Kyatric (thank you once again, this is helpful stuff)
I'm uploading th capx file
https://mega.nz/#!cM8lXIKI!h3IMrQFTJtOH ... VWonIiE33E
made a lot of changes overnight..
It's different than the last one and ain't working
http://www.blackhornettechnologies.com/Construct2Stuff/Shuffle_BHT.capx
With Smart Random and a decoding function to convert the numbers 1 to 52 to your CiS format.
Hey blackhornet
Thank you for providing the method
but is it possible to sort the cards after applying the BHT
Also great job with the Plugin
Sort them how?
in a descending order to compare the values for poker hands like one pair, two pair etc
Develop games in your browser. Powerful, performant & highly capable.
There's various algorithms for poker. Sorry, I can't help beyond decoding the cards, as in the given function. Either Goggle "poker algorithm code" or maybe someone else has done this already.