This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-05-31 13:22:25

Lesstea33
Scratcher
Registered: 2011-05-30
Posts: 20

Rnd function

I don't know if this is advanced or not, but does scratch have a random function (This means if i ask pick a number and someone puts some number 1-8 it randomizes the action assigned to the numbers. ) If this isn't advanced you can move it  smile  Visual format would be rnd. ( I programmed before using visual basic. scraatch is much easier)

Offline

 

#2 2011-05-31 13:24:31

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Rnd function

Try the 'pick random (1) to (10)' block.


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#3 2011-05-31 13:29:33

Lesstea33
Scratcher
Registered: 2011-05-30
Posts: 20

Re: Rnd function

what does it look like in blocks. (if u can just post it here  smile )

Offline

 

#4 2011-05-31 14:48:08

Baderous
New Scratcher
Registered: 2011-04-14
Posts: 100+

Re: Rnd function

It is in the Operators category.

Offline

 

#5 2011-05-31 16:05:14

Taneb
Scratcher
Registered: 2009-07-07
Posts: 100+

Re: Rnd function

[blocks]<pick random(  )to( )>[/blocks]

Offline

 

#7 2011-06-01 18:21:22

Lesstea33
Scratcher
Registered: 2011-05-30
Posts: 20

Re: Rnd function

Thanks!

Offline

 

Board footer