Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Limit in lists?
- gigapouch
-
Scratcher
1000+ posts
Limit in lists?
I have always been wondering if there is a limit to how long a list can be. I already know there is a 301 clone limit, but what about a list limit? I am creating a new Encrypted Password Generator that will add to the list of possible characters with more random numbers. Is the limit 301 or is it unlimited?
- firedrake969_test
-
Scratcher
500+ posts
Limit in lists?
However much data your computer can store without crashing, I guess 

- Rogue208
-
Scratcher
97 posts
Limit in lists?
As far as I know there isn't a limit. Why are you asking just curious?
- gigapouch
-
Scratcher
1000+ posts
Limit in lists?
I am curious, and just so when I make another project with lists I won't be surprised.
- turkey3
-
Scratcher
1000+ posts
Limit in lists?
It depends directly on your RAM. Every new one-character item in a list adds a couple bytes to your RAM (one for the item and one for its number), so if you have 4 gigs of RAM free, that would be about 2 billion 1-character items.
- gigapouch
-
Scratcher
1000+ posts
Limit in lists?
It depends directly on your RAM. Every new one-character item in a list adds a couple bytes to your RAM (one for the item and one for its number), so if you have 4 gigs of RAM free, that would be about 2 billion 1-character items.
Good to know!
- Noplanecrash
-
Scratcher
2 posts
Limit in lists?
repeat (infinity)
add (pick random (1) to (10)) to [list v]
end
i dunno. i dont think theres a limit.:cool
(pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (pick random (1) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10)) to (10))
Last edited by Noplanecrash (Jan. 1, 2017 21:21:15)
- Discussion Forums
- » Questions about Scratch
-
» Limit in lists?