3 ms·
Reminds me of this 'Hello World': http://stackoverflow.com/questions/15182496/why-does-this-code-using-random-strings-print-hello-world http://stackoverflow.com
by ejk314 12y ago
Reminds me of this 'Hello World':
http://stackoverflow.com/questions/15182496/why-does-this-code-using-random-strings-print-hello-world http://stackoverflow.com/questions/15182496/why-does-this-co...
I bet these two ideas would go well together.
- vortico 12y agoThe seed for the random number generator is not executed though.
- ejk314 12y agoI was thinking more along the lines of making the main function (array) call some other function which does this in such a way that it looks like you implemented a random number generator but it actually prints "Hello World". And you could hide the fact that 'main' was a piece of code by making it the initial seed for for the random number generator and using macros in a separate header file to rename it to something like 'SEED'.
- masklinn 12y agoSadly the libc prng is not specified, and thus non-portable. It might work if things are checked on the same kernel and libc combination, or it might not. The Java PRNG is specified and globally portable.