Gidsss / UwUIDE

A compiler made to be cute uwu >~<
6 stars 0 forks source link

`random` functions #288

Closed am-cid closed 3 months ago

am-cid commented 3 months ago
  1. randomInt-chan(bound1: number, bound2: number)
    • bound1 doesn't necessarily need to be lesser than bound2.
    • the fn will calculate which is the lower and upper bound anyway.
  2. randomFloat-kun(bound1: number, bound2: number)
    • bound1 doesn't necessarily need to be lesser than bound2.
    • the fn will calculate which is the lower and upper bound anyway.
  3. randomBool-sama()
  4. randomString-senpai(length: number)
    • length is floored to 0 so passing in negative numbers is fine