123323r235535325
refsdx3532rwfghjebjtyerdfngmhgfdvxcvhkygd
[{"id":"5ec1fc81.0cc444","type":"function","z":"9818b402.023088","name":"random, undefined, null","func":"const MIN = 1;\nconst MAX = 99;\n//The maximum is exclusive and the minimum is inclusive\n \nswitch (msg.payload) {\n\ncase \"undefined\" :\nmsg.payload = undefined;\nbreak;\n\ncase \"null\" :\nmsg.payload = null;\nbreak;\n\ncase \"random\" :\nmsg.payload =function getRandomInt(min = MIN, max = MAX) {\n min = Math.ceil(min);\n max = Math.floor(max);\n return Math.floor(Math.random() * (max - min)) + min;\n}();\nbreak;\n}\nreturn msg;\n\n","outputs":1,"noerr":0,"x":362.0000762939453,"y":919,"wires":[["ce4febd1.e1c158","cfff2bce.cf26f8"]]}]