Would this be a 99% chance?

Started by dsadasdas on

Topic category: Help with modding (Java Edition)

Last seen on 08:13, 15. Apr 2024
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

Last seen on 14:46, 16. Apr 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what  
Thu, 03/28/2024 - 14:46

what

 

Last seen on 08:13, 15. Apr 2024
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

Last seen on 18:59, 29. Mar 2024
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.

Last seen on 16:19, 27. Apr 2024
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)

Last seen on 18:04, 23. Apr 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes it would
Thu, 03/28/2024 - 16:47

yes it would