LogFAQs > #934388812

LurkerFAQs, Active DB, DB1, DB2, DB3, DB4, DB5, Database 6 ( 01.01.2020-07.18.2020 ), DB7, DB8, DB9, DB10, DB11, DB12, Clear
Topic List
Page List: 1
TopicPolitics Containment Topic 268: Hope & Change
LordoftheMorons
02/14/20 7:28:31 PM
#283:


Corrik7 posted...
There isn't a way to just internally roll a dice every time it needs a random result?
Assuming you're not thinking of a literal physical die inside your computer, no. The program's code is fixed, so the only way you can get different outcomes is to give it different inputs. Pseudorandom number generators are actually deterministic, but the sequences of numbers they give "look" random in the sense that (if the PRNG is perfect) if I get some numbers from the PRNG, I can't predict future numbers any better than I could for a truly random number generator.

---
Congrats to Advokaiser for winning the CBX Guru Challenge!
... Copied to Clipboard!
Topic List
Page List: 1