I am frustrated because I do not know if what I am attempting is even possible.
Lets say I have a list of unsigned numbers. I want to create a seed for a certain pseudorandom number generator algorithm that can generate that specific set of numbers.
When creating the seed, I know the length of the list, and the minimum/maximum numbers.
Here is my current algorithm for generating numbers (C++):
unsigned short rng(unsigned short lowerBounds, unsigned short upperBounds){
static unsigned short lim = (upperBounds - lowerBounds)+1;
static unsigned short a = 1; //SEED
a = a*2 % 32749;
return (a % lim)+lowerBounds;
}
So for example, I would have the numbers { 63, 37, 82, 34, 75}
I would need to have a seed that would generate those numbers in the first 5 runs (order doesnt matter i suppose)
In simpler terms, I want to control the numbers that an RNG generates