Would this be a 99% chance?

Started by dsadasdas on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Would this be a 99% chance?


so would it?? uh idk what to put here i need to extend this to 25 characters

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you're gonna reply to me…
Thu, 03/28/2024 - 14:49

if you're gonna reply to me atleast put something useful

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the random function u have…
Thu, 03/28/2024 - 15:31

the random function u have is creating just 1 or 0, so if u want to make a 99% chance, you have to make it this way:

if random(0,100) =< 99

This should work.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Actually, the 1 to 0…
Thu, 03/28/2024 - 16:14

Actually, the 1 to 0 generator generates decimal numbers, so I'm pretty sure either way would work(what you suggested, or the original)