Random Numbers

How Random is Random?

Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1409
Registered: 03 / 2005
Subject:

Random Numbers

 · 
Posted: 01.05.2011 - 13:14  ·  #1
Hi Rolf.

I can find no reference to a seed for the random number function. Does this mean that every time the processor is reset the same sequence of pseudo random numbers is generated?

Or is there some sneaky way of changing the seed?

Regards

Merlin.
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Random Numbers

 · 
Posted: 01.05.2011 - 20:15  ·  #2
Hello Merlin,

the seed value is constant $40B3. I think I can make this value controllable by the application, if necessary.

rolf
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1409
Registered: 03 / 2005
Subject:

Re: Random Numbers

 · 
Posted: 01.05.2011 - 21:58  ·  #3
This would be very helpful.

Thanks.

Merlin.
nopoweruser
 
Avatar
 
Subject:

Re: Random Numbers

 · 
Posted: 21.07.2014 - 18:59  ·  #4
Hallo Power User,

ich kann einfach keine Zufallszahl (selbst mit randomrange!) bei meinem Tiny 85 erzeugen, ich habe es schon mit einer Multiplikation mit meiner Schuhgrösse abzüglich dem Alter meiner Grossmutter, auch leider vergebens versucht

Auch keinen Timer Sleep - Tiny das unbekannte Wesen mit 8 Beinen

Gruss
Toni
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Random Numbers

 · 
Posted: 24.07.2014 - 17:52  ·  #5
Hallo Toni,
bitte das hier beachten:

topic.php?t=3155

rolf
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 14   93   107 · Page-Gen-Time: 0.034968s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI