Just starting out? Need help? Post your questions and find answers here.
artnat
User
Posts: 12 Joined: Sun Nov 10, 2024 3:34 pm
Post
by artnat » Thu Dec 05, 2024 8:43 pm
I wanted a random sequence, which is always the same. Here a four lines example:
Code: Select all
randomseed = 0
For i.l = 1 To 10
Debug Random(100000)
Next
I expected alsways the same sequence of ten random numbers, but they are different each time. What am I doing wrong? Or what is the benefit of randomseed?
idle
Always Here
Posts: 5835 Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand
Post
by idle » Thu Dec 05, 2024 8:54 pm
you need to call the function
artnat
User
Posts: 12 Joined: Sun Nov 10, 2024 3:34 pm
Post
by artnat » Thu Dec 05, 2024 9:04 pm
Ooooh, I was blind!
idle
Always Here
Posts: 5835 Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand
Post
by idle » Thu Dec 05, 2024 9:10 pm
artnat wrote: Thu Dec 05, 2024 9:04 pm
Ooooh, I was blind!
hehe, that's a normal day for me with dyslexia
Quin
Addict
Posts: 1122 Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:
Post
by Quin » Fri Dec 06, 2024 5:32 am
idle wrote: Thu Dec 05, 2024 9:10 pm
artnat wrote: Thu Dec 05, 2024 9:04 pm
Ooooh, I was blind!
hehe, that's a normal day for me with dyslexia
And a normal day for me just in general
jacdelad
Addict
Posts: 1991 Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa
Post
by jacdelad » Fri Dec 06, 2024 5:49 am
idle wrote: Thu Dec 05, 2024 9:10 pm
artnat wrote: Thu Dec 05, 2024 9:04 pm
Ooooh, I was blind!
hehe, that's a normal day for me with dyslexia
I have daily sex...no, I mean, I have dyslexia.
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
idle
Always Here
Posts: 5835 Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand
Post
by idle » Fri Dec 06, 2024 7:45 am
jacdelad wrote: Fri Dec 06, 2024 5:49 am
idle wrote: Thu Dec 05, 2024 9:10 pm
artnat wrote: Thu Dec 05, 2024 9:04 pm
Ooooh, I was blind!
hehe, that's a normal day for me with dyslexia
I have daily sex...no, I mean, I have dyslexia.
enjoy it while your young