14 lines
401 B
Python
14 lines
401 B
Python
|
from lnx.logicnode.lnx_nodes import *
|
||
|
|
||
|
|
||
|
class RandomIntegerNode(LnxLogicTreeNode):
|
||
|
"""Generates a random integer."""
|
||
|
bl_idname = 'LNRandomIntegerNode'
|
||
|
bl_label = 'Random Integer'
|
||
|
lnx_version = 1
|
||
|
|
||
|
def lnx_init(self, context):
|
||
|
self.add_input('LnxIntSocket', 'Min')
|
||
|
self.add_input('LnxIntSocket', 'Max', default_value=2)
|
||
|
self.add_output('LnxIntSocket', 'Int')
|