ubotapprentice 1 Posted February 16, 2011 Report Share Posted February 16, 2011 how to random choose female or male? into create account? Quote Link to post Share on other sites
UBotBuddy 331 Posted February 16, 2011 Report Share Posted February 16, 2011 Well, give us a website to look at. Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted February 16, 2011 Report Share Posted February 16, 2011 Hi ubotapprentice check this and examine random gender.ubot Quote Link to post Share on other sites
Super Dave 26 Posted February 16, 2011 Report Share Posted February 16, 2011 What I like to do is set a #variable to a random number between 1 and 100.. right under that I have an IF with an evaluate qualifier. If #variable > 50 createAccount(male) else createAccount(female) Works like a charm 1 Quote Link to post Share on other sites
pftg4 102 Posted February 16, 2011 Report Share Posted February 16, 2011 Guys one node your over thinking this pftg4create account.ubot 4 Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted February 16, 2011 Report Share Posted February 16, 2011 wow pftg4 thats the best workaround! +1 Quote Link to post Share on other sites
UBotBuddy 331 Posted February 16, 2011 Report Share Posted February 16, 2011 Use your binary thinking. yes/no True/false on/off 0 or 1 It does not require fancy coding. Of course you can do that if you want to simulate patterns. But the basic premise is Male/Female. Quote Link to post Share on other sites
Praney Behl 314 Posted February 16, 2011 Report Share Posted February 16, 2011 Guys one node your over thinking this pftg4create account.ubot Hey you took my idea.. haha no worries.. LOL Quote Link to post Share on other sites
JohnB 255 Posted February 16, 2011 Report Share Posted February 16, 2011 Guys one node your over thinking this pftg4create account.ubot Nice! +1 Quote Link to post Share on other sites
Diji1 0 Posted February 16, 2011 Report Share Posted February 16, 2011 Guys one node your over thinking this pftg4create account.ubot That is a brilliantly simple and very elegant solution. Is there a way to determine what gender has been chosen after the node has run though? Quote Link to post Share on other sites
UBotBuddy 331 Posted February 16, 2011 Report Share Posted February 16, 2011 @pftg4 I forgot +1 You think like I do. $spin is THE most under-utilized node. I use it ALL the time. Quote Link to post Share on other sites
Super Dave 26 Posted February 16, 2011 Report Share Posted February 16, 2011 Yeah I never thought about spin for an even 50/50 split, nice. Quote Link to post Share on other sites
JohnB 255 Posted February 16, 2011 Report Share Posted February 16, 2011 That is a brilliantly simple and very elegant solution. Is there a way to determine what gender has been chosen after the node has run though? I suppose you could monitor (or add to list) the first names and see how they come out. Quote Link to post Share on other sites
Super Dave 26 Posted February 16, 2011 Report Share Posted February 16, 2011 That is a brilliantly simple and very elegant solution. Is there a way to determine what gender has been chosen after the node has run though? Yepp but you'll need an extra step to set the variable somewhere.. In the attached example I set it so that the % which is male/female can be changed based on your preference.create-acct-wGender.ubot Quote Link to post Share on other sites
Super Dave 26 Posted February 16, 2011 Report Share Posted February 16, 2011 Here's how it'll look with spin..create-acct-wSpin.ubot Quote Link to post Share on other sites
ubotapprentice 1 Posted February 17, 2011 Author Report Share Posted February 17, 2011 Guys one node your over thinking this pftg4create account.ubot u da man! Quote Link to post Share on other sites
ubotapprentice 1 Posted February 17, 2011 Author Report Share Posted February 17, 2011 That is a brilliantly simple and very elegant solution. Is there a way to determine what gender has been chosen after the node has run though? good question........cause then we need to pick the female check box on the create acccounts.... Quote Link to post Share on other sites
pftg4 102 Posted February 17, 2011 Report Share Posted February 17, 2011 hi guys thx for the kind words,but was stolen from praney he had his lawyers call me today so i have to make this disclosure or there could be trouble. LOL but to expand on this theme this is my idea i swear. @super Dave you can also use spin to do % for example {male|male|male|male|male|male|male|female|female|female} would give 70/30 split {|female|female|female|female|female|female|male|male|male|male} would give 60/40 split i'm sure you get the idea Pftg4 Quote Link to post Share on other sites
Goodieweb 28 Posted October 16, 2012 Report Share Posted October 16, 2012 I need to get a random female name... but this file Pftg4 posted I cant open it with UBot v4 .... Quote Link to post Share on other sites
a2mateit 395 Posted October 16, 2012 Report Share Posted October 16, 2012 I need to get a random female name... but this file Pftg4 posted I cant open it with UBot v4 .... reset account("Female") Then use $username data with First Name. Quote Link to post Share on other sites
Lord Of The North 11 Posted October 22, 2012 Report Share Posted October 22, 2012 reset account("Female") Then use $username data with First Name. Thanks man for your help ! Quote Link to post Share on other sites
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.