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.017s
<1…10111213141516…34>
  • im looking for a fill routine written in basici know this would be slow but i want to tinker with it to produce something else.

    ... pixel row, then generating a random number, and if it's above ... right across (or uses the random scattering algorithm I described).
    joefish joefish July 2018 Development
  • im looking for a fill routine written in basici know this would be slow but i want to tinker with it to produce something else.

    I did one of these a bit ago, based on a basic whatsit, but I don't recall where the basic was.


    http://www.boriel.com/forum/bug-reports/download/file.php?id=33

    Here's the core of it in Boriel's basic:
    [code]
    Gedlion Gedlion July 2018 Development
  • Summary : Fifty Pascal Programs by SybexI got around getting [url="http://www.worldofspectrum.org/infoseekid.cgi?id=2001037"]this book[/url] and have had a look through it which consists of…

    ...
    So my random number generator needs changing from this ... BEGIN
    210 seed:=random(0);
    220 result ... br />
    And the random number seed could be initially set ...
    would improve the random?

    Please understand ...
    CP/M User CP/M User July 2018 Sinclair Miscellaneous
  • Getting an even random numberWhat would be the best, simplest way to do this ? I was thinking of say: A = RND*100 Then a conditional along the lines of: IF A / 2 <> I…

    Get a random number which is an integer, then multiply by two.
    arttu arttu November 2018 Sinclair Basic
  • Getting an even random numberWhat would be the best, simplest way to do this ? I was thinking of say: A = RND*100 Then a conditional along the lines of: IF A / 2 <> I…

    [quote="arttu;947655"]Get a random number which is an integer, then ... (RND*100) [i] ... get a random number make sure its a whole ... number too[/i]
    20 PRINT ... PRINT A' [i] ... print new number (on same line as original ...
    spider spider November 2018 Sinclair Basic
  • Getting an even random numberWhat would be the best, simplest way to do this ? I was thinking of say: A = RND*100 Then a conditional along the lines of: IF A / 2 <> I…

    ... use PEEK 23672 as a random number between 0 and 255 because ... , it can work as a random number when it is included in ... you´ll obtain an even random number between 0 and 510. Quick ...
    IvanBasic IvanBasic November 2018 Sinclair Basic
  • Getting an even random numberWhat would be the best, simplest way to do this ? I was thinking of say: A = RND*100 Then a conditional along the lines of: IF A / 2 <> I…

    That might work out a fraction better actually, thanks. I'm really after a random number between 0 and 63. But it must occasionally be 0 rather than "1 to 63" :)
    spider spider November 2018 Sinclair Basic
  • Non-repetitive RNDHi guys) Perhaps, some of you already encountered a situation, when one needed a set of [b]unique [/b](pseudo-)random values, say, from zero to 25…

    ... that means that following one random number, any number is just as likely ... to be the next random number, including the exact same ... a “1”, the next random number is just as likely to ... if the random number is the same as a previous random number.
    ...
    1024MAK 1024MAK November 2018 Sinclair Basic
  • Non-repetitive RNDHi guys) Perhaps, some of you already encountered a situation, when one needed a set of [b]unique [/b](pseudo-)random values, say, from zero to 25…

    ... cannot generate truly random numbers. For a truly random number generator, you ... the seed for a pseudo random number generator ;-)

    ...
    To get truly random numbers, the extra hardware needed ... way to convert the random analogue voltages to a ...
    1024MAK 1024MAK December 2018 Sinclair Basic
  • Non-repetitive RNDHi guys) Perhaps, some of you already encountered a situation, when one needed a set of [b]unique [/b](pseudo-)random values, say, from zero to 25…

    A linear congruential pseudo-random number generator will do that.
    < ... a row, in a seemingly random order.
    matalog matalog December 2018 Sinclair Basic
  • Random GRASSHello guys, Many yrs ago I used predefined UDG as grass to fill some area, adding to it via PLOT or POKE. It seems that PRINTing a string$ combin…

    ... this:-
    Generate a random number,( whole number between the max and min ... or greater than the previous random result (so theres a one ...
    mik3d3nch mik3d3nch February 2019 Sinclair Basic
  • Random GRASSHello guys, Many yrs ago I used predefined UDG as grass to fill some area, adding to it via PLOT or POKE. It seems that PRINTing a string$ combin…

    ... with the arrays using a random number of the array index.
    print at y,x;g$[random];
    using a loop to ...
    Luny Luny February 2019 Sinclair Basic
  • Short unattended type-in'sThis follows a similar topic on the BBC/Acorn forum (said topic can be found [url="https://stardot.org.uk/forums/viewtopic.php?f=2&t=14919"]here[/url…

    ... a loop of say a random number (min 10 max 100) of ... better to then put the 'random picks for the address' into ...
    spider spider April 2019 Sinclair Miscellaneous
  • 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? i also want it to always generate the same…

    ... ! If you want to generate random numbers then the next time ... will not get the same number because of their being randomly ... ! Imagine a dice as a random number generator from 1 to 6 ...
    mik3d3nch mik3d3nch June 2019 Development
  • 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? i also want it to always generate the same…

    ... Mike, so all the pseudo-random number generators (RNGs) output completely ... these two kinds of pseudo-random numbers important?

    ... work is that each number generated depends on the ... algorithm. And the first number generated depends on the seed ...
    colonel32 colonel32 June 2019 Development
  • 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? i also want it to always generate the same…

    ... Robin. I did look up random number generation in the Sinclair Basic ...
    mik3d3nch mik3d3nch June 2019 Development
  • Looking for Chaos remake "Chaos Groove"The best Chaos remake is Chaos Groove but the homepage for it has become defunct. The version I had on my old hd before it became corrupted included …

    ... a mathematician. It adds a random number from 1-10 to att ...
    SteveSmith SteveSmith January 2020 Games
  • Looking for Chaos remake "Chaos Groove"The best Chaos remake is Chaos Groove but the homepage for it has become defunct. The version I had on my old hd before it became corrupted included …

    [quote="SteveSmith;960810"] It adds a random number from 1-10 to att & def, and if att > def, the attacker wins.
    [/quote]

    So 1 vs 8 and then 1 vs 9 has a 0.03% chance of happening, I think. Good work.
    morph morph January 2020 Games
  • Looking for Chaos remake "Chaos Groove"The best Chaos remake is Chaos Groove but the homepage for it has become defunct. The version I had on my old hd before it became corrupted included …

    ... ="SteveSmith;960810"] It adds a random number from 1-10 to att ...
    Lebowsk1 Lebowsk1 January 2020 Games
  • Son et Lumiere - a lightsynth from 1985.I wrote this back in 1985, inspired by Jeff Minter's Psychedelia; I think I was the only person who actually bought the Spectrum version! I wanted…

    ... that in turn drove a random number generator which created patterns of ...
    mik3d3nch mik3d3nch April 2020 Software
  • this code wont give me a random starfieldim using a peice of code that ive copied from a book, ignore most of it as it is redundant. for some reason i get a strange random starfield instead …

    ... /> ... if you want a more random placement of stars, then get ...

    ld bc,1000 ; number of stars.
    loop: push ...
    ld a,(hl) ; Get "random" number from location.
    inc hl ...
    Sokurah Sokurah July 2020 Assembler
  • this code wont give me a random starfieldim using a peice of code that ive copied from a book, ignore most of it as it is redundant. for some reason i get a strange random starfield instead …

    ... /> ... if you want a more random placement of stars, then get ...

    ld bc,1000 ; number of stars.
    loop: push ...
    ld a,(hl) ; Get "random" number from location.
    inc hl ...
    digital digital July 2020 Assembler
  • this code wont give me a random starfieldim using a peice of code that ive copied from a book, ignore most of it as it is redundant. for some reason i get a strange random starfield instead …

    ... used by random number routines
    ;
    ; . . . . . . . . . . .
    ;
    ; Return a random number in ... A between 0 and the number
    ; in ...
    dbolli dbolli July 2020 Assembler
  • Carnival: is it broken and can it be fixed?[url=https://spectrumcomputing.co.uk/entry/823/ZX-Spectrum/Carnival]Carnival[/url] by Eclipse software is ostensibly one of the Speccy's most arcade-…

    ... sec the game checks the random number and the chance for taking ...
    Pgyuri Pgyuri October 2020 Games
  • Scientists puzzled by "Dark Matter" maphttps://www.bbc.co.uk/news/science-environment-57244708 I have to admit this is a bit over my head - however it is interesting and it has the scie…

    ... they have the same number of elements and the ... numbers in it than the number of natural numbers.
    number of ways of arranging ... difficult to prove a number is transcendental (despite the ... if you pick a random number in an interval (e ...
    Paradigm Shifter Paradigm Shifter June 2021 Chit chat
  • Console frameworkStill working on Specotron, but at the point where working out the diagonal lines collision is not good at beer o'clock. In the meantime I've knoc…

    ... probably implement

    random N ; return random number from in interval 0 ...
    Paradigm Shifter Paradigm Shifter September 2022 Development
  • Tutorial - learn machine code in 30mins[B][I]Message from the moderators[/I] - bigjon has requested that readers' attention be drawn to a better version of this tutorial, one which is easi…

    ... free, fast-running (over 32768) and memorable address in RAM ... br /> ;scroll road
    ;random road left or right
    number and use the instruction ... ) to see if the number has dropped to show a ... (hl and de) and Repeat (until bc is zero).
    bigjon bigjon November 2009 Development
  • Tutorial - learn machine code in 30mins[B][I]Message from the moderators[/I] - bigjon has requested that readers' attention be drawn to a better version of this tutorial, one which is easi…

    ... free, fast-running (over 32768) and memorable address in RAM ... br /> ;scroll road
    ;random road left or right
    number and use the instruction ... ) to see if the number has dropped to show a ... (hl and de) and Repeat (until bc is zero).
    buzzy buzzy September 2012 Development
  • How to disable the "scroll?" message?Hello. I'm a beginner Z80 assembly programmer and I decided to make a ZX Spectrum game to practice my skills and gain some more experience. I curr…

    ... array

    ORG 32768
    FONTBASE EQU #3c00
    jp sound1

    ;a random sound I made that will ... nexlvl

    ;display level number then start game
    nexlvl ... push hl
    djnz .loop1 ;repeat for next 12*2 bytes ...
    Kotek Kotek July 2022 Development
  • 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 …

    ... bad guys shoot you at random, it works fine, but after ... supposed to be random gets stuck on a number. I've tried ...
    Pirate Pirate June 2003 Sinclair Basic
<1…10111213141516…34>

Latest Posts

  • European Software Titles with an English version
    Antiriad2097 on 6:40AM
  • i am currently listening to........
    Paradigm Shifter on 12:26AM
  • Happy 40th Birthday to the Amstrad CPC464!
    dmsmith on April 16
  • Celebrity deaths...
    mel the bell on April 16
  • Cooperative Games.
    Paradigm Shifter on April 16
  • LONELY TZX files : software TZX'd on the online sites with NO ASSOCIATED DOCUMENTATION
    harriusherbartio on April 16
  • How we became brainwashed by social media
    Antiriad2097 on April 16
  • How Do You Categorize Your Speccy Software and Games?
    Antiriad2097 on April 16
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on April 16
  • I am currently watching.....
    zx1 on April 15

HitBox

Word Docs Hits
random 6.6K 8.2K
number 18.5K 25.1K
32768 1.2K 2K
repeat 2.6K 2.9K

Related Threads

  • 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.<br /> <br /> Any ideas on …
  • How do I get a random numberHi,<br /> <br /> I need a simple routine to get a random number from 1 to 4. I don't need nothing very complex or that much random, it just have to p…
  • issue number of ZX Spectrum 48K by means of serial numberIt is possible to identify the board issue of ZX Spectrum 48K/+ by means of the serial number?<br /> If yes, how?<br /> <br /> <br /> [ This Message…
  • 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]…
  • Random number from a rangeHow can I generate in assembly a random number from a range, let's say 0-21 or 0-57?<br /> <br /> There are generators which make it 0-255.<br /> <br…
  • 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 …
  • So where is the random number in the Speccy ?So I am messing around with ZX Spectrum Assembler and I want a random number. I looked up previous posts and one of the links said that random number…
  • Getting an even random numberWhat would be the best, simplest way to do this ?<br /> <br /> I was thinking of say:<br /> <br /> A = RND*100<br /> <br /> Then a conditional …
  • 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…

Related Searches

  • random
  • number of spectrums manufactured
  • number of spectrums made
  • serial number
  • divide out 32768
  • random assembly
  • random number code
  • input number
  • validate input is a number
  • not a number
  • validate input is number
  • if input is not a number
  • random number basic
  • random number 32768
  • random number
  • random number generator
  • random number generation
  • generate random number interface
  • machine code random number
  • random number gen

Copyright © 2024 World of Spectrum