Discuss Scratch

realmaster42
Scratcher
52 posts

Custom Scratch Block: 'Random'

(random number between (1) and (1))

I think that should be something good for scratch, since we can choose a random number.

Try my game! Snipe & Defend - https://scratch.mit.edu/projects/67083420/

when game started :: looks events
set ['realmaster42'] [int v] :: looks variables
[int v] ['realmaster42' v] define (1) :: looks variables
set ['scratch'] globalint ['realmaster42' v] :: looks variables
play ['scratch' v] :: looks pen
arinerron_tutorials
New to Scratch
2 posts

Custom Scratch Block: 'Random'

This block already exists, look in the operators!
(pick random (1) to (10))
realmaster42
Scratcher
52 posts

Custom Scratch Block: 'Random'

oh, k xD

Try my game! Snipe & Defend - https://scratch.mit.edu/projects/67083420/

when game started :: looks events
set ['realmaster42'] [int v] :: looks variables
[int v] ['realmaster42' v] define (1) :: looks variables
set ['scratch'] globalint ['realmaster42' v] :: looks variables
play ['scratch' v] :: looks pen
RandomPerson1789
Scratcher
100+ posts

Custom Scratch Block: 'Random'

realmaster42 wrote:

(random number between (1) and (1))

I think that should be something good for scratch, since we can choose a random number.
Basically what you need is:
(pick random ((number) + 1) to ((number) - 1))
Easy Workaround

Powered by DjangoBB