Using Log math to make weighted random number generator

Well this could be one way to do it.

Obviously it will provide a random number between 0 and the variable which may not be ideal. You might wanna add something to limit that range or simply provide a static amount which would be simply removing the “random int”.

The result simply goes into a FOR loop node. Inside of the body you just spawn or do whatever you want to do.