-
Notifications
You must be signed in to change notification settings - Fork 6
Random
Swifter edited this page Oct 19, 2024
·
1 revision
-
rm.randomtakes a minimum and maximum number and returns a random number in between.
rm.random(0, 3) // something between 0 and 3-
rm.seededRandomgenerates a unique sequence of random numbers from a seed. It returns a function which generates the next number in this sequence every time it's called with a minimum and maximum.
const mySeededRandom = rm.seededRandom(2)
mySeededRandom(0, 2) // 1.4685...
mySeededRandom(3, 4) // 3.7342...
mySeededRandom(2, 5) // 4.2027...Hashing is the process of taking some input value and generating an output that is seemingly random, but uniquely tied to the input.
-
rm.hashIntegertakes in some integer number and hashes it into a number between 0 and 1.
rm.hashInteger(3) // 0.7202..
rm.hashInteger(4) // 0.9236..-
rm.hashStringtakes in a string and hashes it into a number between 0 and 1.
rm.hashString('my hash') // 0.6337...- Info
- Difficulty
- Beatmap Objects
- Gameplay Objects
- Walls
- Basic Notemods
- Note Iterators
- Basic Events
- V3 Events
- Custom Events
- Heck Tracks and Animation
- Easings
- Point Types
- Point Utilities
- Heck Animation Baking
- Heck Animation Settings
Non-Vivify Models
Vivify