playMaker

Author Topic: Random float is inconsistent?  (Read 1857 times)

ptrlo

  • Playmaker Newbie
  • *
  • Posts: 31
Random float is inconsistent?
« on: October 09, 2014, 02:31:01 AM »
Min is -1.3 and max is 7.5, yet I see it go to 8 and 9, and for some reason it prefers 6-9 heavily, creating objects (it's supposed to be a random spawn) only on one side... What's going on?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Random float is inconsistent?
« Reply #1 on: October 09, 2014, 06:53:44 AM »
This usually happens when something else is modifying the float after it is randomized.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

ptrlo

  • Playmaker Newbie
  • *
  • Posts: 31
Re: Random float is inconsistent?
« Reply #2 on: October 09, 2014, 05:35:34 PM »
I actually observed the float as it was changing having the game live, and saw the value change beyond the min/max and favor the upper part of the max. What to do?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Random float is inconsistent?
« Reply #3 on: October 09, 2014, 05:45:45 PM »
Can you post a simple repro scene?
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D