English
Forum

Bitmuster exclude

 

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
zahl& = rnd(10)

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.
 
03/01/12  
 




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.
 
04/04/12  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.297 Views

Untitledvor 0 min.
RAW09/13/18
Michael Klumb08/29/15
mein06/02/13
Uwe Lang05/18/13
More...

Themeninformationen

this Topic has 2 subscriber:

Nico Madysa (2x)
Jörg Sellmeyer (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie