Author Topic: Simple PRNG  (Read 5788 times)

0 Members and 1 Guest are viewing this topic.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • Steve’s QB64 Archive Forum
Re: Simple PRNG
« Reply #15 on: December 23, 2018, 02:36:26 am »
With GET #1, , a$(1) you probably wanted GET #1, , a$1

Aye.  I don’t use variables in such a manner usually, (normally I DIM my strings to avoid typing the $ as much as possible), so I gaffed the syntax.  a$(1) is a string array; a$1 is a single byte character.  a$1 would work much better in this case.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
Re: Simple PRNG
« Reply #16 on: December 23, 2018, 08:32:02 pm »
Could probably just set up a small radio telescope and use background noise from space, but then I wouldn't know where to get a radio telescope. Don't think you'll find a much better source for random values than that. I think Random.org(or is that .com) uses atmospheric  noise.
Granted after becoming radioactive I only have a half-life!

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
Re: Simple PRNG
« Reply #17 on: December 25, 2018, 07:37:02 pm »
Code: QB64: [Select]

just timer changes itself  and gives a seed.

@Cobalt
I don't know _RADIOTELESCOPE's synthax....
sorry for my bad knowledge! :-)

Moreover is it  more predictable the flow of the sea on the beach?
Programming isn't difficult, only it's  consuming time and coffee