nfordbscndrd Well-Known Member Licensed User Longtime User Jun 19, 2011 #1 In a card game, I would like to use Rnd to generate a random deal, but I would also like to be able to seed the random number generator so that I can redeal the same deal just by entering the seed number rather than having to save all the hands of cards. I've searched and the only thing remotely on topic is an encryption library that has a Seed function in it. Assuming that isn't an efficient use of that library even if it worked for my purposes, I'm wishing for a seed function. Here is a class that does it, but I don't know what to do with it: Random | Android Developers
In a card game, I would like to use Rnd to generate a random deal, but I would also like to be able to seed the random number generator so that I can redeal the same deal just by entering the seed number rather than having to save all the hands of cards. I've searched and the only thing remotely on topic is an encryption library that has a Seed function in it. Assuming that isn't an efficient use of that library even if it worked for my purposes, I'm wishing for a seed function. Here is a class that does it, but I don't know what to do with it: Random | Android Developers
Erel B4X founder Staff member Licensed User Longtime User Jun 20, 2011 #2 Using SecureRandom from the Encryption library sounds like a good solution.