| |
|
|
Jörg Sellmeyer | I befasse me straight with the Creation of casually Bitmustern. this is Yes Thanks Rnd() and be$ too no trouble. i want now only defined Bitmuster exclude.
example:
The Zufallszahl 27187 yields the following Bitmuster: 0110 1010 0011 0011
How can I now achieve, that defined Bitmuster not attend. gives it there a mathematical Herangehensweise or must I simply any Bitmuster investigating and Unerwünschte rausschmeißen or change. If means z.B. the pattern 1010 not come along should. yet komplizierter, if same several not come along should. means z.B. 1010 and 1001. can I the somehow with the &, |, >>, << Operators achieve, with them I The whole number investigate? in the momentum would I it by a comparison the individual groups solve but the must still eleganter weg... |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 02/29/12 ▲ |
|
|
|
|
Nico Madysa | me falls spontan nothing Einfacheres one, as that You whom for Rnd() given area, from the The Zufallszahlen come, something komprimierst and the numbers, The You not having want, through such supplant, The outside the compressed Bereichs lying.
example: You want numbers of 0 To 9, but the 7 but should not come along. means make You instead of
The following:
zahl& = rnd(9)'The 9 can now not any more come along
case zahl& = 7 : zahl& = 9'hierdurch can The 9 come along, The 7 but not any more
so would at least ensured, that still any numbers, The come along can, same often come along.
what better falls me unfortunately not one. |
|
|
| |
|
|
|
Jörg Sellmeyer | thanks for your Posting. I hab's now simply so resolved, I The number from whom erwünschten Bitmustern zusammensetze. so need I nothing delete, separate Have automatically The right Bits drin. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 04/04/12 ▲ |
|
|
|
|
Nico Madysa | or so. |
|
|
| |
|
|