n1kos84 * * * * * *
Posts : 132 Join date : 2009-09-13
| Subject: bc question Wed 24 Feb 2010, 04:37 | |
| hi guys i've started using bc a few days now and i was wondering when you hit creation automatigue is there a way to make it give you pupils with some kind of a good names instead of the random that generates? if someone knows plz tell me | |
|
bamb@m * * * * * * * * *
Posts : 692 Join date : 2009-08-13 Location : under a palm tree ┏ ( ・o・) ┛♪
| Subject: Re: bc question Wed 24 Feb 2010, 06:06 | |
| 1) this would belong in cheats 2) you cannot make endless cool names during automatic creation. the best you could do is dictate the first three or four letters and the rest would be random. if you try to force the first five or more letters to be static, your bc will freeze after 50 or less pupils created, from what I have read. if you want to make pupils with cool names in bc, you're stuck making custom brutes (brute sur-mesure) one-by-one... good luck! | |
|
n1kos84 * * * * * *
Posts : 132 Join date : 2009-09-13
| Subject: Re: bc question Wed 24 Feb 2010, 06:37 | |
| ok thx bamb@m i guess there is nothing more to say about this (mods you can delete this) | |
|
w13winni VIP
Posts : 282 Join date : 2009-04-17
| Subject: Re: bc question Wed 24 Feb 2010, 21:52 | |
| or you can use that : http://scriptwin.netau.net/name/generer.html (but in french) | |
|
dentdesabre VIP
Posts : 26 Join date : 2009-11-16
| Subject: Re: bc question Wed 21 Apr 2010, 21:50 | |
| - bamb@m wrote:
- you cannot make endless cool names during automatic creation. the best you could do is dictate the first three or four letters and the rest would be random.
actually, you can do much more than that : it's just that the few people who know enough javascript to play with the name generation file of BC have not a lot of imagination. "wasusuge" is actually one of 8 000 brutes I created using a simple pseudo-japanese name generator. Though one might argue about their "coolness", these names were definitely way better than the "prefix+random stuff" scripts that you can find in the forums. taitoune also did a script with some very smart tricks to generate pronouncable names with random letters ("yulael" was one of them) Maybe I should start a constest to help unchain the creativity of the BC power users... to get you guys started : you could use random *syllables* instead of random letters. | |
|
jcelite * * * * * * * * *
Posts : 620 Join date : 2009-06-12 Age : 33 Location : España
| Subject: Re: bc question Wed 21 Apr 2010, 23:23 | |
| i found this .. but well i dont know about programming.. excusezmoi :S i even think that it isnt java.. ..XD could you give me tracks about how to put it in bc?? ( if it is possible ) - Code:
-
import random vowels = ["a", "e", "i", "o", "u"] consonants = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z'] def _vowel(): return random.choice(vowels) def _consonant(): return random.choice(consonants) def _cv(): return _consonant() + _vowel() def _cvc(): return _cv() + _consonant() def _syllable(): return random.choice([_vowel, _cv, _cvc])() def create_fake_word(): """ This function generates a fake word by creating between two and three random syllables and then joining them together. """ syllables = [] for x in range(random.randint(2,3)): syllables.append(_syllable()) return "".join(syllables) if __name__ == "__main__": print create_fake_word() | |
|
Tze * * * * * * * *
Posts : 335 Join date : 2009-08-27 Location : Finland
| Subject: Re: bc question Thu 22 Apr 2010, 17:46 | |
| That function is made with python, you can't use it with bc.. | |
|
w13winni VIP
Posts : 282 Join date : 2009-04-17
| Subject: Re: bc question Sun 25 Apr 2010, 12:05 | |
| i create that if you want , after it's easy to modify it : - Code:
-
function rnd(minv, maxv){ if (maxv < minv) return 0; return Math.floor(Math.random()*(maxv-minv+1)) + minv; } function createName(){ var letters ='aeiouy'; var letters2 ='bcdfghjklmpqrstvwxz'; var tot = ''; for (var i=0; i<3; i++) { tot = tot + letters2.charAt(rnd(0, letters2.length - 1)) + letters.charAt(rnd(0, letters.length - 1)); }
var num = Math.floor(Math.random()*1000) var s = tot + num; return s; } | |
|
Sioc admin
Posts : 2785 Join date : 2009-12-19
| Subject: Re: bc question Sun 25 Apr 2010, 12:16 | |
| | |
|
jcelite * * * * * * * * *
Posts : 620 Join date : 2009-06-12 Age : 33 Location : España
| Subject: Re: bc question Sun 25 Apr 2010, 17:47 | |
| ok thanks ! :) ill try these! | |
|