Search
Setup for Free
⛄R/S
⛄ R74n / Sandboxels
•
3y ago
unique-blue
Sandboxels uses RNG a lot, so messing up the RNG function makes it behave strangely.
Sandboxels uses RNG a lot
, so messing up the RNG function makes it behave strangely
.
⛄ R74n / Sandboxels
Join
Sandboxels: Experiment with 500+ elements in your web browser. Chat about all R74n projects here!
13,892
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
S
sacred-rose
•
5/18/23, 5:33 PM
oo
R
ryan 🪱
•
5/18/23, 5:33 PM
like everything is rng
S
sacred-rose
•
5/18/23, 5:33 PM
make more things rng
!
U
unique-blue
Sandboxels uses RNG a lot, so messing up the RNG function makes it behave strang...
U
unique-blue
OP
•
5/18/23, 5:33 PM
for some reason JavaScript lets you do that
.
R
ryan 🪱
•
5/18/23, 5:34 PM
u picked the perfect function to edit
U
unique-blue
OP
•
5/18/23, 5:35 PM
i tried it before
, but only with randomly
(keeping the old Math
.random somewhere else
) picking from a few fixed values
U
unique-blue
OP
•
5/18/23, 5:35 PM
but not with cycling through them
R
ryan 🪱
•
5/18/23, 5:35 PM
oh my GODDDD
R
ryan 🪱
•
5/18/23, 5:35 PM
hbomb
U
unique-blue
OP
•
5/18/23, 5:35 PM
that
's weird
R
ryan 🪱
•
5/18/23, 5:35 PM
on a screen full of cancer
R
ryan 🪱
•
5/18/23, 5:35 PM
explosion damage is also super RNG
R
ryan 🪱
•
5/18/23, 5:35 PM
basic view
U
unique-blue
wow
U
unique-blue
OP
•
5/18/23, 5:36 PM
i highly suspect that it has to do with the imposter
Math.random
Math.random
's periodicity
R
ryan 🪱
•
5/18/23, 5:36 PM
yes definitely i didnt know it did that
R
ryan 🪱
•
5/18/23, 5:36 PM
funny
P
precious-lavender
oh my GODDDD
S
sacred-rose
•
5/18/23, 5:36 PM
IT
'S BEAUTIFUL
S
sacred-rose
•
5/18/23, 5:36 PM
wait this means you can add circular bombs now
U
unique-blue
OP
•
5/18/23, 5:36 PM
nuke
S
sacred-rose
•
5/18/23, 5:37 PM
why do they look amazing
R
ryan 🪱
•
5/18/23, 5:37 PM
wow
U
unique-blue
OP
•
5/18/23, 5:37 PM
normal bomb
R
ryan 🪱
•
5/18/23, 5:37 PM
nuke also
, the middle looks almost spherical
U
unique-blue
normal bomb
U
unique-blue
OP
•
5/18/23, 5:38 PM
(radius manually increased to 30
)
R
ryan 🪱
•
5/18/23, 5:38 PM
my nitro has stopped moving
S
sacred-rose
•
5/18/23, 5:38 PM
why would bombs be affected
U
unique-blue
OP
•
5/18/23, 5:38 PM
idk why the fire is patterned like that
S
Serioustar
why would bombs be affected 😭
R
ryan 🪱
•
5/18/23, 5:38 PM
the damage uses random numbers
S
sacred-rose
why would bombs be affected 😭
U
unique-blue
OP
•
5/18/23, 5:38 PM
explosion logic is almost entirely Math
.random calls
A
Alice?
idk why the fire is patterned like that
R
ryan 🪱
•
5/18/23, 5:39 PM
fire has a randomized chance to spawn per pixel
(of course
)
R
ryan 🪱
•
5/18/23, 5:39 PM
and it may move in a circle instead of line by line
, im not even sure
R
ryan 🪱
•
5/18/23, 5:42 PM
pretty
P
precious-lavender
fire has a randomized chance to spawn per pixel (of course)
U
unique-blue
OP
•
5/18/23, 5:43 PM
looking at circleCoords output
, i can
't make sense at all of how it arranges the coord pairs
.
R
ryan 🪱
•
5/18/23, 5:43 PM
stolen code
U
unique-blue
OP
•
5/18/23, 5:43 PM
U
unique-blue
OP
•
5/18/23, 5:44 PM
if you go through them with each consecutive Y
-coord set having its own element
, you get weirdness
R
ryan 🪱
•
5/18/23, 5:44 PM
maybe mess up the circlecoords function
U
unique-blue
if you go through them with each consecutive Y-coord set having its own element,...
U
unique-blue
OP
•
5/18/23, 5:46 PM
nvm
U
unique-blue
OP
•
5/18/23, 5:46 PM
it checks out
R
ryan 🪱
•
5/18/23, 5:46 PM
my adhd is too bad to try to read it
U
unique-blue
it checks out
U
unique-blue
OP
•
5/18/23, 5:47 PM
columns in category order
: wall
, ice
, wood
, glass
, stained glass
, brick
, ruins
R
ryan 🪱
•
5/18/23, 5:48 PM
U
unique-blue
(radius manually increased to 30)
U
unique-blue
OP
•
5/18/23, 5:49 PM
so maybe this was another slightly
-less
-direct periodic
"how the rows line up
" effect
R
ryan 🪱
•
5/18/23, 5:49 PM
ohhh
P
precious-lavender
my nitro has stopped moving
U
unique-blue
OP
•
5/18/23, 5:50 PM
it might be a similar mechanism to the radiation thing
R
ryan 🪱
•
5/18/23, 5:50 PM
i think so lol
R
ryan 🪱
•
5/18/23, 5:50 PM
must do that with all liquids
?
U
unique-blue
OP
•
5/18/23, 5:50 PM
where my guess is that the amount of pixels and the
"randomness
" period somehow line up in a way related to their Math
.random calls
R
ryan 🪱
•
5/18/23, 5:50 PM
water doesnt do it hm
U
unique-blue
OP
•
5/18/23, 5:51 PM
beans look weird
Next page
Math.random
Math.random
Similar Threads
Sandboxels Recipes
⛄R/S
⛄ R74n / Sandboxels / ⏳│sandboxels
14mo ago
Sandboxels Translators
⛄R/S
⛄ R74n / Sandboxels / 🗯│sandboxels-feedback
2y ago
The House within the world of Sandboxels
⛄R/S
⛄ R74n / Sandboxels / 🎃🏘rue-street🍫🚪
15mo ago