World of Spectrum
  • Categories
  • Discussions
  • FAQ
  • Sign In
Home › Search
Title Search
@title beer Word 'beer' in title
User Search
  • @user admin Only posts by Admin
Text Search
  • @body beer Word 'beer' in the text
Phrase Search
"Hello World" Exact phrase match
Exclude Terms
  • car -red Search cars that are not red
"Or" Searches
  • honda | bmw 'honda' or 'bmw' results
Multi-Field
@(title,body) hello Both contain 'hello'
WildCard
  • hond* civ* Match all with an astrix
Combination
  • @title bmw @user admin
See more supported syntax examples
Search Again :: Adv Search 1000 results in 0.010s
<1234567…34>
  • I need ASM for random numberI need to generate a random pair of coardinates in asm so that x=random no between 0 and 31, y=random no between 0 and 23. Any ideas on how to code …

    ... crap)
    to rescale random values you can mask it ...
    this is another simple generator
    x = MOD((57*oldx ... time)

    making real random generator is true science.
    some ... [url="http://www.saliu.com/random-numbers.html"]http://www.saliu ...
    Fikee Fikee September 2004 Development
  • Sprite adviceHello. So, I'm slowly getting to grips with Z80 assembly - currently equal parts frustration and enjoyment. Now looking for some advice to help shift…

    ... , not a very good random number generator. Here's the one ... ZShell doesn't support ROM-random generator I converted
    ; them to ... .

    ; 16-bit seed random generator
    ; ----------------------------
    ; Faster than previous ...
    Alcoholics Anonymous Alcoholics Anonymous May 2006 Development
  • Question about snapshot files....I've noticed that everytime I play "The Boss" (football management) it produces the same scores. I've played the first 5 games 3 or 4 times now and t…

    The RANDOM generator is not the only thing, ... issue: don't make your random generator to determent from the timer.
    Dr BEEP Dr BEEP April 2007 Games
  • The Non Randomness of Sam BasicHows about this for weird. Hardly ever bothered with such simple stuff before but this is what I just did on the Sam ( as in a real one now I've got …

    ... ?lnk=gst&q=pseudo+random&rnum=6#34e1fddfe531ae62]discussed ... is a much better pseudo-random generator (in that it generates a ... ]appear[/i] to be truly random - suitability for other uses may ...
    Dunny Dunny June 2007 Sinclair Basic
  • That's not my nameSo, time for some idle speculation. Why did you pick the forum handle you use (IF you didn't just use your real name)? I've used 'Winston' since I …

    I used a random mix of letters in my name. Unfortunately, the random generator was a bit crap and ended up with surname-firstname every time. I was going to debug it but I forgot.
    Lee Fogarty Lee Fogarty July 2007 Chit chat
  • That's not my nameSo, time for some idle speculation. Why did you pick the forum handle you use (IF you didn't just use your real name)? I've used 'Winston' since I …

    [QUOTE=fogartylee;201727]I used a random mix of letters in my name. Unfortunately, the random generator was a bit crap and ended up with surname-firstname every time. [/QUOTE]

    Not very random was it? :-o
    Arjun Arjun July 2007 Chit chat
  • VIC 20 emulation on the SpectrumI'm sure most people are aware of the my attempt at bringing the full Commodore experience to Sinclair users with the "Twenty Commodes" program. It e…

    ... do a simple 8-bit random generator, how to allocate memory for ... PTR2+1

    ;Initialise Random Seed
    LDA #$7f
    ;Keep trying a random position
    ;until an empty ...
    Digital Prawn Digital Prawn August 2008 Sinclair Miscellaneous
  • A scrolling starfield - help needed!I have been messing on my speccy again recently and tried to do a scrolling (parallax - maybe) starfield. I know how to scroll using machine code but…

    ... using a fast 16-bit random generator which I found somewhere on ... a fast 8-bit pseudo-random generator too from the same website ...
    Digital Prawn Digital Prawn December 2008 Development
  • Jetpac questionHi all, I just bought a copy of Jetpac off of Ebay and I'm having problems. To start, I'm trying to play it on an issue 2 Speccy with Interface 1, 2 …

    ... crashed[/b]. :D The pseudo-random generator just makes it look that ... .
    Pseudo-random RAM filling test, with 16-bit generator.

    Digital Prawn Digital Prawn January 2009 Games
  • When would you use LD A,R ?Can anyone tell me a practical use of LD A,R and LD R,A I am confused when you would need to use it? Cheers

    As for random generator, [URL="http://www.worldofspectrum.org/ ...
    Patrik Rak Patrik Rak November 2009 Development
  • Joffa's gamesI think opening this thread would be a nice way to pay homage to Joffa. According to infoseek, this is the list of games programmed by him, as a so…

    ... add a bias to the random generator so that I can win ...
    ewgf ewgf October 2010 Games
  • Joffa's gamesI think opening this thread would be a nice way to pay homage to Joffa. According to infoseek, this is the list of games programmed by him, as a so…

    ... add a bias to the random generator so that I can win ...
    deadpan666 deadpan666 October 2010 Games
  • BeepFX - beeper sound effects editor for WindowsThere is readme file and a demo project, so I don't think it needs much explaination. To get idea what it is capable for, File/Open project, load the…

    Thanks again, Shiru. I discovered random generator now and in fact I'm able to make some interesting sounds with single clicks.

    Check for sound effects in my future games :)
    Ralf Ralf December 2011 Development
  • Auto generated spritesLooking around for some graphics I came across [url]http://blog.disktree.net/?p=19[/url] , one of several such pages. Need the odd 8x8 UDG or two (…

    ... the code for generating the random numbers, I noticed that ... interesting example code for random number generation that might ... exploring on the Xor-shift random number thread (check out ... to try inserting this new random generator into my example... Actaully, ...
    kgmcneil kgmcneil December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... if you use a (solid) random generator to generate (much) more than ...
    Patrik Rak Patrik Rak December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... if you use a (solid) random generator to generate (much) more than ... "throw away" the first two random values generated from a fresh ...
    Paddy Coleman Paddy Coleman December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... 0-9 (assuming the random generator returns the 8bit number in ... (this time assuming the 8 random bits in A, which the ...
    Patrik Rak Patrik Rak December 2011 Development
  • RND CommandsExactly how random are they? Reason I ask is I'm using 4 of them to generate a random number, the value of which then assigns movement commands to f…

    ... about the BASIC random generator not being all that random. While you definitely ...
    Oktup Oktup January 2012 Sinclair Basic
  • RND CommandsExactly how random are they? Reason I ask is I'm using 4 of them to generate a random number, the value of which then assigns movement commands to f…

    ... about the BASIC random generator not being all that random. While you definitely ...
    Rebelstar without a cause Rebelstar without a cause January 2012 Sinclair Basic
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... . cover the entire screen). This generator, by far, surpasses the one ... someone is interested in a random generator with better characteristics and period ... /showthread.php?t=39632"]CMWC random number generator for Z80[/URL].
    Patrik Rak Patrik Rak June 2012 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... the principles of this xorshift generator in 'idiots' language? I ... QUOTE]

    The generator produces a deterministic sequence of ... evenly distributed, "looks" very random, and only repeats after ... need for a great random generator implementation.
    Einar Saukas Einar Saukas July 2012 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... three main aspects of each random generator. One is the period ... the tested generator is usually used as random values in ... reasonably similar answer, the generator passes that particular quality ... how simple operations the generator uses, which translates quite ...
    Patrik Rak Patrik Rak July 2012 Development
  • Journey's End III was a big fan of Journey's End and invested many months of my life in playing this very hard game. I even had plans in 1987 to make a follow up. In…

    ... [/B], how 'sensible' is your random generator? I mean that it's ... that caves usually are pretty random, but it looks rather poor ... many crawlers and adventures with random (and even planned!) castles abuse ...
    NRA NRA July 2012 New game ideas
  • Journey's End III was a big fan of Journey's End and invested many months of my life in playing this very hard game. I even had plans in 1987 to make a follow up. In…

    ... [/B], how 'sensible' is your random generator? I mean that it's ... many crawlers and adventures with random (and even planned!) castles ... I will use a different generator. JE had room-based dungeon ... generator while mine is mixing mazes ...
    LCD LCD July 2012 New game ideas
  • Random number from a rangeHow can I generate in assembly a random number from a range, let's say 0-21 or 0-57? There are generators which make it 0-255. By using bit masks I…

    ... on Patrik Rak's stream random generator)
    Gedlion Gedlion September 2012 Development
  • Random number from a rangeHow can I generate in assembly a random number from a range, let's say 0-21 or 0-57? There are generators which make it 0-255. By using bit masks I…

    Well, i quite not understand why simply dont use

    RND()*range.

    Take 8bit(16bit) value as fixed point number in range
    catmeows catmeows September 2012 Development
  • Random number from a rangeHow can I generate in assembly a random number from a range, let's say 0-21 or 0-57? There are generators which make it 0-255. By using bit masks I…

    [QUOTE]Well, i quite not understand why simply dont use

    RND()*range.

    Take 8bit(16bit) value as fixed point number in range
    Ralf Ralf September 2012 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... ="1"]That should be 'non random distribution of values' but I ... either. It's a "non random fixed value". :)

    If ... all zeros as seed, the random generator will always return value zero.
    Einar Saukas Einar Saukas September 2012 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... either. It's a "non random fixed value". :)

    If ... all zeros as seed, the random generator will always return value zero ...
    R-Tape R-Tape September 2012 Development
  • RANDOMIZE USRI always thought that this particular basic command was not intuitive! If I understand correctly is means run the code from the memory address, is t…

    ... randomize implies the RAND function (random numbers), what should have it ... />
    You can set the random generator with seed by giving a ...
    Dr BEEP Dr BEEP February 2013 Sinclair Basic
<1234567…34>

Latest Posts

  • I bought an accoustic guitar. How do you play it?
    dm_boozefreek on 7:51PM
  • Goodbye Z80
    zx1 on 7:11PM
  • Happy 40th Birthday to the Amstrad CPC464!
    AndyC on 6:29PM
  • Another Birthday! The Game Boy Is 35!
    dm_boozefreek on 6:17PM
  • I am currently watching.....
    Antiriad2097 on 5:05PM
  • European Software Titles with an English version
    harriusherbartio on 12:06PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 11:21AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 11:01AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21

HitBox

Word Docs Hits
random 6.6K 8.2K
generator 1.3K 1.5K

Related Threads

  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…
  • CMWC random number generator for Z80Seeing the interest regarding the [URL="http://www.worldofspectrum.org/forums/showthread.php?t=23070"]Xor-Shift random number generator for Z80[/URL]…
  • Deterministic random number generatorI'm looking for a random number generator in assembly which, given a seed, the generated sequence is always the same. You change the seed, you get a …
  • random number generator without using rnd in basicwhat is the simplest way to generate random numbers in basic (0-255), without using the rnd statement? <br /> <br /> i also want it to always gener…
  • random numbersCan you write a piece of code that gets you a truly random number from the Spectrum, or is it only capable of generating a pseudo-random number (ie. …
  • Wanted: Monty Mole and the random crushersA fairly good rip off of Jet Set Willy, this game suffers from one main weakness- the randomly falling crushers. You can be the best player in the wo…
  • Random Smiley FacesAs promised, here's the Syntax:<br /> <br /> ;Startup<br /> <br /> 5 CLS<br /> 7 PAPER 0: BORDER 0<br /> <br /> ;Graphics<br /> <br /> 10 FOR n=0 to …
  • RND not random?I recently wrote a simple Alien style game where the bad guys shoot you at random, it works fine, but after a while the Variable that is supposed to …
  • More random questionsWay back in the mists of time I remember reading a couple of articles in an ancient copy of Sinclair User, ZX Computing or the like (can't remember w…
  • You live you learn - random ramblingsWell I've been around for some time now and I continue to be amazed at the new things I find on WoS.<br /> <br /> For example, today I came across Ma…

Related Searches

  • random
  • random assembly
  • random number code
  • rainbow generator
  • rutine random
  • random generated mapo
  • random generated map
  • random generated
  • random z80
  • random crash with divide connected
  • 5 random things
  • ay generator
  • fx generator
  • spectrum 48k random border bars
  • online character generator
  • halequin random keypres
  • halequin random
  • harlequin random
  • z80 random generator
  • random number generator

Copyright © 2024 World of Spectrum