Solved it! Thanks for the help guys!

Hello,

I'm trying to create a function where a random number will be generated. If the generated number equals to the number set, it should execute a spawn function and thus dropping an item from the killed Pawn.

So far I created the Pawn which drops the item upon death, but I now want it to drop the item with a certain percentage.

In ActionScript 3.0, this was fairly easy to do so. However in UnrealScript, I have yet to find a well explained Math Random tutorial. I've been searching for a while now, but without success.

I want the function to do the following;

Generate a number ranging from zero to three (0-3); four numbers.

If the number is zero (0) for example, it should execute my 'spawn()'.

If anyone could help me out with this Math Random function, it would be greatly appreciated.

Hello,

I'm trying to create a function where a random number will be generated. If the generated number equals to the number set, it should execute a spawn function and thus dropping an item from the killed Pawn.

So far I created the Pawn which drops the item upon death, but I now want it to drop the item with a certain percentage.

In ActionScript 3.0, this was fairly easy to do so. However in UnrealScript, I have yet to find a well explained Math Random tutorial. I've been searching for a while now, but without success.

I want the function to do the following;

Generate a number ranging from zero to three (0-3); four numbers.

If the number is zero (0) for example, it should execute my 'spawn()'.

If anyone could help me out with this Math Random function, it would be greatly appreciated.

## Comment