+ 18
Challenge: Generate random number without using any random number generator method/function.
Build Your Own Simple Random Numbers Method the output of code will must always print different numbers after execution. If you will get same value each time then your program is not generating truly random number
10 Answers
+ 10
Python Random number from 0 to 9
https://code.sololearn.com/c8kVUyI6x26S/?ref=app
+ 9
https://code.sololearn.com/W6ozhp248u1F/?ref=app
+ 6
Check
This
Out!!
What is better than time which changes every second?
https://code.sololearn.com/c2NEOOccJlH9/?ref=app
+ 5
My solution:
https://code.sololearn.com/Wq8uSyoVW3Wm/?ref=app
A similar challenge:
https://www.sololearn.com/discuss/938562/?ref=app
+ 2
https://code.sololearn.com/cijXXmXe3Qzj/?ref=app
0
https://code.sololearn.com/clJd6Ho7j7iY
Does this qualifies? XDDDD
0
So i remember pondering this question back when i used to think about that sort of thing, and it's one of the few algorithmic conundrums i never came up with an answer for other than just coming up with, i.e. "writing down," a more or less approximately random list of numbers and then going down it, and the longer it is the better approximation it would be, but unless you spent an inordinately long amount of time coming up with the list, it would definitely not be very random.
Come to think of it, i think i just now came up with a way to make it significantly closer to true randomness than what i just described. I'll try to see if it works. I'd like to state beforehand for the record that i have not actually done any programming in years, and also that i just smoked some delicious Trulieve Member Berry TruFlower(c) (for whatever that's worth lol)! I guess I'll first try to just sketch out an algorithm, although idk if I've ever really done it that way before. only tutorial I've gotten thru yet is c. :)
0
Well after a decent amount of work, i haven't actually written any code, but i think i pretty much proved the basic algorithm in my notes. Guess I'll post them just in case anybody wants to look.
and of course it's way more complicated and messy looking than i anticipated or intended lol.
https://code.sololearn.com/crhHOJzAy8hU/?ref=app