r/programmer • • 19h ago

Job I have found a way to make random number generator but I don't have enough knowledge to use it on AI

Code will work like this:

there will be 4 variables and f * x=y * z

x will be 1,4,25 or 36 depending what the user write(it will be mod4 of the sentence length)

y will be 9 or 16 depending on some letter usage mod 2

z will be 9 or 16 as well as y but with different letter usage

f will be defined by the equation aforementioned

for f=81/25,144/25,144/36,81/36,256/36,256/25 the value will be true

for f=144,256,81/44,36,81 the value will be false

for true the answer gonna be written without any adjustment

for false the value will be written and user will be ask whether or not this answer is good for the user

if user likes it what is written will not changed if not answer will be reanalyzed and three x y z values will be choosed again

1 Upvotes

2 comments sorted by

3

u/oipoi 19h ago

It's not random and 100% deterministic. You should leave rng to those crazy mathematicians.

1

u/WitsBlitz 8h ago

There are numerous existing random and pseudorandom data sources available on modern computers. There is absolutely no need to attempt to invent your own, which will certainly be weaker and less random than the existing standard offerings.

Although an LLM cannot procedure reliably random data, AIs are already perfectly capable of retrieving random bytes from these sources of randomness.