herbieherb Posted March 17, 2017 Share Posted March 17, 2017 Im looking for a random function that outputs a list of numbers, where no number is followed by an equal number. Quote Link to comment
Marionette Maven Marissa Farrell Posted March 17, 2017 Marionette Maven Share Posted March 17, 2017 Attached is a wrapper that creates a list with a set high and low value of the random numbers as well as how many numbers will appear in the list. RandomList_MFarrell.vwx Quote Link to comment
herbieherb Posted March 17, 2017 Author Share Posted March 17, 2017 Thx for your help MarissaF. This is what i had so far. It gives me lists like [1; 3; 4; 4; 2; 2; 3] Now i want it to be a list that has no following equal number. instead of: 1; 3; 4; 4; 2; 2; 3 i need: 1; 3; 4; 2; 3; 1; 4 Quote Link to comment
Patrick Winkler Posted March 17, 2017 Share Posted March 17, 2017 (edited) Hi herbie, I think realising that in pure Marionette is very complicated. (we need recursion!) Here is a node which creates a random range where no neighbouring numbers are equal. random_range_custom.vwx Edited March 17, 2017 by Patrick Winkler 1 Quote Link to comment
herbieherb Posted March 17, 2017 Author Share Posted March 17, 2017 Thx a lot this is exactly what i was looking for. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.