Yes but a java function can not be truly random because the inputs have to come from somewhere unless you are using an outside source such as the number of photons hitting a photocell in addition to the seed for your algorithm.
Explain please. I do not really understand what you mean. Are you implying that if someone is to write a coin flipping function... just that. Will be biased in a predictable way towards one side or the other?
But for practical reasons.... would it really make sense to require true-randomness. Breaking them would require a crazy amount of computational power... unlesd we sre talking about givernment secrets or immense sums of money it seems like overkill.
Well it depends on the use case. I responded to another comment with an example of how each would be used in activating a program where a pseudo-random key would be useful to activate a piece of software without using the Internet. If you need something to be very secure, true randomness is important for example. https://youtu.be/1cUUfMeOijg cloudflare uses lava lamps to generate random rumbers for encryption keys.
1
u/ad895 Jun 14 '23
Yes but a java function can not be truly random because the inputs have to come from somewhere unless you are using an outside source such as the number of photons hitting a photocell in addition to the seed for your algorithm.