If winning the money comes from lawful business or trading transactions, it will be then lawful. If winning the money comes from a draw or any other non business procedure, then it a gambling which is not allowed. The matter does not depend on whether to win or lose or not to win or not to lose, but depends to the nature of financial activity to avoid gambling in any case.
Wassalam.