Curiosity : RandomSeed(Random(1000))

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
SPH
Enthusiast
Enthusiast
Posts: 593
Joined: Tue Jan 04, 2011 6:21 pm

Curiosity : RandomSeed(Random(1000))

Post by SPH »

Curiosity:

Code: Select all

RandomSeed(Random(1000))
Debug Random(1000)
:twisted: :wink:

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 486
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: Curiosity : RandomSeed(Random(1000))

Post by Mindphazer »

So, what ?
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
User avatar
SPH
Enthusiast
Enthusiast
Posts: 593
Joined: Tue Jan 04, 2011 6:21 pm

Re: Curiosity : RandomSeed(Random(1000))

Post by SPH »

And so: asking PB to create a random RandomSeed when it shouldn't, I find that comical. :shock: :D

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
User avatar
Piero
Addict
Addict
Posts: 1040
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Re: Curiosity : RandomSeed(Random(1000))

Post by Piero »

Huh?
Do you (always) get a weird result (like 1000)?
Not here on ARM Mac…
¿ random RandomSeed when it shouldn't ?
User avatar
mk-soft
Always Here
Always Here
Posts: 6313
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Curiosity : RandomSeed(Random(1000))

Post by mk-soft »

Doesn't make sense.

Random always starts at program start randomly
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply