Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Algorithm] Pseudo-random numbers generator #50

Open
realwoopee opened this issue Oct 7, 2018 · 8 comments
Open

[Algorithm] Pseudo-random numbers generator #50

realwoopee opened this issue Oct 7, 2018 · 8 comments

Comments

@realwoopee
Copy link
Member

No description provided.

@marjanovicsteva
Copy link

Can I pick this one up?

@realwoopee
Copy link
Member Author

Yes

@marjanovicsteva
Copy link

Okay, so I've finished this one. But now that I think of it, is it allowed to use an API which has bigger randomness rate? Check here what I've done, to see what I'm talking about.

If it's not allowed, just say, I'll do it manually 😄

@realwoopee
Copy link
Member Author

realwoopee commented Oct 10, 2018

By the Contributing.md you are allowed to use an external library only when there's no other solution is possible. So, implement this algorithm manually, please.

@Naamloos
Copy link

Truely random numbers are not possible on todays computers. Your best bet would be using this api as it generates numbers from atmospheric noise, which is truly random. Best you can get on computers are pseudo-random numbers.

There is simply no algorithm to generate a truly random number. You're asking for something impossible.

I've gathered a couple articles for you to read:
https://curiosity.com/topics/why-computers-can-never-generate-truly-random-numbers-curiosity/
https://engineering.mit.edu/engage/ask-an-engineer/can-a-computer-generate-a-truly-random-number/

I'd recommend you close this issue as no human being in the history of humankind has ever been able to write an algorithm to generate truly random numbers.

@realwoopee realwoopee changed the title [Algorithm] True randomizer [Algorithm] Pseudo-random numbers generator Oct 27, 2018
@Naamloos
Copy link

A pseudo-random number generator has already been included in the .net framework.

https://docs.microsoft.com/en-us/dotnet/api/system.random?view=netframework-4.7.2

@realwoopee
Copy link
Member Author

This repo is not about C# implementations of algorithms and data structures. This repo is about data structures and algorithms implemented in any programming language. So it doesn't matter that pseudo-random number generator has been already included in the .net framework. Also, there are many pseudo-random number generators. https://en.wikipedia.org/wiki/List_of_random_number_generators

@Naamloos
Copy link

Oh, apologies. This repo was marked as C#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants