Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- r=200-255, g=000-000, b=000-000
- r=200-255, g=000-255, b=000-000
- r=200-255, g=000-000, b=000-255
- r=000-000, g=200-255, b=000-000
- r=000-255, g=200-255, b=000-000
- r=000-000, g=200-255, b=000-255
- r=000-000, g=000-000, b=200-255
- r=000-255, g=000-000, b=200-255
- r=000-000, g=000-255, b=200-255
- r=200-255, g=200-255, b=000-000
- r=200-255, g=000-000, b=200-255
- r=000-000, g=200-255, b=200-255
- The chance that the last color variation will be used is slightly lower than the rest (only ~8.257% vs ~8.340%). This is because the color variation is picked by generating a random floating point between 0 and 11.99 exclusive, which is then cast to an integer create the index to the table, suggesting that the developer didn't understand that the max bounds of the rand function is exclusive.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement