Given an input string, I want to generate a "random" number between 0 and 1.
However given the same input string, the returned value should stay the same.
I tried something like:
Random gtiRandomGenerator = new Random(input.hashCode());
float gtiRandom = gtiRandomGenerator.nextFloat();
However FindBugs complained with Random object created and used only once (DMI_RANDOM_USED_ONLY_ONCE)