Here's a curly question...

  • bimmo_devices
    24th Jun 2013 Member 0 Permalink

    This is pretty random and does not help many people, but, is TPT deterministic? i.e. if the system clock is contains a random time, is TPT simulation completely predictable? If not, what opperations have pseudorandom behaviour?

  • boxmein
    24th Jun 2013 Former Staff 0 Permalink
    Things like which space around CLNE the particle is placed are determined by rand(), as well as stuff like photon and neutron directions, etc.

    Check this out:
    https://github.com/FacialTurd/The-Powder-Toy/search?q=rand%28%29&ref=cmdform
  • bimmo_devices
    25th Jun 2013 Member 0 Permalink

    I thought fission would have to be random too.

  • mniip
    25th Jun 2013 Developer 0 Permalink
    @bimmo_devices (View Post)
    if you synchronize the random seeds, and use the same versions of glibc's rand to generate random numbers, it should work
  • bimmo_devices
    25th Jun 2013 Member 0 Permalink

    I can't compile TPT. I haven't tried too hard, but because I don't understand the Precompiler options, I can't tell if I'm doing it correctly. Deterministic TPT would be cool though.