Discuss Scratch

beadyeyes
Scratcher
30 posts

pick random a to z

it's pretty simple
(pick random (a) to (z))
beadyeyes
Scratcher
30 posts

pick random a to z

or
(pick random letter [a] to [z])
alexphan
Scratcher
1000+ posts

pick random a to z

What would this return?
pick random [thing] to [lol] :: operators reporter
MasterJPixel
Scratcher
500+ posts

pick random a to z

No support. Extremely easy workarounds.

Last edited by MasterJPixel (Aug. 24, 2016 22:17:43)

beadyeyes
Scratcher
30 posts

pick random a to z

alexphan wrote:

What would this return?
pick random [thing] to [lol] :: operators reporter

either
<[(var)] = [thing]>
or
<[(var)] = [lol]>
alexphan
Scratcher
1000+ posts

pick random a to z

beadyeyes wrote:

alexphan wrote:

What would this return?
pick random [thing] to [lol] :: operators reporter

either
<[(var)] = [thing]>
or
<[(var)] = [lol]>
So basically
set [pick v] to (pick random (1) to (2))
if <(pick) = [1]> then
set [result v] to [thing]
else
set [result v] to [lol]
end
beadyeyes
Scratcher
30 posts

pick random a to z

yep. But this only happens if you enter a full word, individual letters will choose any letter in between.

Last edited by beadyeyes (Aug. 22, 2016 19:30:05)

braxbroscratcher
Scratcher
1000+ posts

pick random a to z

set [alphabet v] to [abcdefghijklmnopqrstuvwxyz]

(letter (pick random (1) to (26)) of (alphabet))
beadyeyes
Scratcher
30 posts

pick random a to z

braxbroscratcher wrote:

set [alphabet v] to [abcdefghijklmnopqrstuvwxyz]

(letter (pick random (1) to (26)) of (alphabet))
wow great
lology27
Scratcher
4 posts

pick random a to z

beadyeyes wrote:

or
(pick random letter [a] to [z])


how do you get red blocks
duckboycool
Scratcher
1000+ posts

pick random a to z

This is an unrelated topic in the wrong forum. Please try not to do that.

Red blocks are made whenever an invalid block is typed. For example;
This block isn't in the BBcode
Or when they user types :: obsolete. For example;
move (10) steps::obsolete

In projects, just put a custom block in you backpack, remove the definition, and place it back in.
SomeoneOnThelnternet
Scratcher
1000+ posts

pick random a to z

No support.

add [a] to [alphabet v] // repeat for each letter

set [output v] to (item (pick random (1) to (26)) of [alphabet v] :: list)
minecraftpigfan2010
Scratcher
17 posts

pick random a to z

(item (pick random (1) to (...)) of [list v] :: list)
(letter (pick random (1) to (...)) of (variable))
you can put almost anything within a list, and use variables for the alphabet

Powered by DjangoBB