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.015s
<1…10111213141516…34>
  • 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. …

    ... a truly random number - as the chances of any single random number being small ... /> Redefine the question as "a random integer between the values of ...
    p13z p13z April 2018 Sinclair Miscellaneous
  • How can I get around having to press ENTER at the scroll query?Or how can I get my program to run on until I stop it?

    I read the 'random number' thread and wondered if there ...
    mik3d3nch mik3d3nch May 2018 BASIC
  • How can I get around having to press ENTER at the scroll query?Or how can I get my program to run on until I stop it?

    ... even 65,000 for my random number generator idea.

    I ...
    mik3d3nch mik3d3nch May 2018 BASIC
  • im looking for a machine code star-field routineim looking for a machine code star-field routine. preferably with mnemonics.

    ... 8 bits. You pick a random number plus a fixed minimum to ... make a 16-bit number for the speed of movement ...
    joefish joefish June 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.

    ... 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…

    ... The program also adds a random number function which is only ... I made my own random number function in Hisoft Pascal ... multiply to get a random number within a certain range ... inumber : integer;
    90 number,
    100 xr, yr,
    CP/M User CP/M User July 2018 Sinclair Miscellaneous
  • 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…

    ... that and put my own random number generator, which is used in ... to generate a random number. On the Amstrad version random(0); is used ... }
    100 seed, {random seed}
    110 score, {number OF turns}
    CP/M User CP/M User July 2018 Sinclair Miscellaneous
  • 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
  • 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…

    ... uses some kind of Random Number Generator for generating the ... I've added my own Random Number Generator again, which has ... and made the number a bit more random on the ... answer,
    550 right, {number OF right answers}
    560 ...
    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
  • 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
<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
generation 2.7K 3.1K

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
  • 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
  • serial number database
  • random number basic
  • random number 32768
  • random number 32768 repeat
  • random number
  • random number generator
  • generate random number interface
  • machine code random number
  • random number gen

Copyright © 2024 World of Spectrum