Discuss Scratch

space_bound
Scratcher
2 posts

random letters

how do I make random letters?
lederniersamourai
Scratcher
500+ posts

random letters

If you want to select a letter that you want to use in a variable you can do this:
(letter (pick random (1) to (26)) of [abcdefghijklmnopqrstuvwxyz])
With “Join” you can jon this to other lwords and letters.
Jemmerl
Scratcher
100+ posts

random letters

I made a project that used random variables… I made it soooo much more complicated XD http://scratch.mit.edu/projects/28485246/
I made a list and had it randomly select a letter from that list XD
mastermind1201
Scratcher
100+ posts

random letters

space_bound wrote:

how do I make random letters?
when green flag clicked
say [(join [you picked] (pick random (1) to (26)))] for (2) secs
amnamu
New Scratcher
1 post

random letters

Can anyone help me this
create a design for a game that allows a user to make a
word from 9 random letters. The program will select 9 random letters and will display them to the
user. The user must try to make a word from the random letters, using each letter only once. The aim
is to use as many of the letters as possible.
deck26
Scratcher
1000+ posts

random letters

amnamu wrote:

Can anyone help me this
create a design for a game that allows a user to make a
word from 9 random letters. The program will select 9 random letters and will display them to the
user. The user must try to make a word from the random letters, using each letter only once. The aim
is to use as many of the letters as possible.
Please create your own new topic rather than necroposting. Sharing what you have is always good.
GaletaApril20
New Scratcher
1 post

random letters

HI I NEED TO KNOW HOW TO CODE A RANDOM LETTER GEN!
BusterBrown1218
Scratcher
100+ posts

random letters

GaletaApril20 wrote:

HI I NEED TO KNOW HOW TO CODE A RANDOM LETTER GEN!
repeat (10)
set [letters v] to (item ((pick random (1) to (26)) v) of [list v] :: list)
end
The list contains all of the letters
Soccer135246
Scratcher
2 posts

random letters

BusterBrown1218 wrote:

GaletaApril20 wrote:

HI I NEED TO KNOW HOW TO CODE A RANDOM LETTER GEN!
repeat (10)
set [letters v] to (item ((pick random (1) to (26)) v) of [list v] :: list)
end
The list contains all of the letters
what is the “v” block?
Dezach
Scratcher
100+ posts

random letters

Soccer135246 wrote:

BusterBrown1218 wrote:

GaletaApril20 wrote:

HI I NEED TO KNOW HOW TO CODE A RANDOM LETTER GEN!
repeat (10)
set [letters v] to (item ((pick random (1) to (26)) v) of [list v] :: list)
end
The list contains all of the letters
what is the “v” block?
It isn't a real block, just an error while writing his post.

Can't you just use?
(letter (pick random (1) to (26)) of [abcdefghijklmnopqrstuvwxyz])
As @lederniersamourai mentioned it.

Last edited by Dezach (Jan. 18, 2021 19:28:44)

stephenjin
Scratcher
1 post

random letters

Dezach wrote:

Soccer135246 wrote:

BusterBrown1218 wrote:

GaletaApril20 wrote:

HI I NEED TO KNOW HOW TO CODE A RANDOM LETTER GEN!
repeat (10)
set [letters v] to (item ((pick random (1) to (26)) v) of [list v] :: list)
end
The list contains all of the letters
what is the “v” block?
It isn't a real block, just an error while writing his post.

Can't you just use?
(letter (pick random (1) to (26)) of [abcdefghijklmnopqrstuvwxyz])
As @lederniersamourai mentioned it.

Yeah thanks so smart

Powered by DjangoBB