Random Number Algorithm

stxma

Well-Known Member
1 Oct 2008
1,195
371
83
I will give the simplest form, although we have a program that produces random numbers.This program is done by 10 clone diskettes.If the disks will not have worked in the first processing logically they will give the same numbers; they will give different ones; that we will have 10 and the same pc that they will process simultaneously. And 10 floppy drives to run on the same computer for the first time.
 
Last edited:
  • Like
Reactions: SERRES
Answer: Random Number Algorithm

If you do not see the code I do not think he can answer you for sure as it depends on how the code is written.

eg in c ++
the rand () function produces the same "number sequence"
the srand () function produces random numbers
 
Last edited:
Answer: Random Number Algorithm

If you do not see the code I do not think he can answer you for sure as it depends on how the code is written.

eg in c ++
the rand () function produces the same "number sequence"
the srand () function produces random numbers
Since I realized if 10 floppy clones are running for the first time rand function on 10 pc but numbered sequentially every time they will get the same number (assuming we are asking for a number every time);

However, if they run a srand function they will give a different number. The queues are after they will run for the first time unused what is it that will do to give a different number? Given that at least I know copying does not affect the data.
 
Answer: Random Number Algorithm

Hello if you were a Greek if you do not know English. If you want to simplify it.
 
Answer: Random Number Algorithm

As I told you before it is purely programming, if someone does not see the code, it can not know.
For example, it would be possible for 27 or loop on all floppy disks to produce specific numbers or 18 repetitions, for example. Everyone can do what they want in a programmatic way.
 
  • Like
Reactions: stxma
Answer: Random Number Algorithm

For example, it could be in 27 or loop on all floppy disks to produce specific numbers or 18 repetitions, for example.

Assuming that, for example, if each 27 produces specific numbers, if the diskette has made 20 loop and copied the diskette when it makes the 21 loop, it will be followed or it will start from the beginning. Whether 21 loop (repeat) takes 30 and before I have copied it ..... from 20 ..... and count it from the new diskette will give 30 again; the duplication mediation will nullify or continue 27 loop (repeat)
 
Last edited:
Answer: Random Number Algorithm

it is a matter of code purely on how it produces the numbers whether they are actually random numbers in real time or whether it will be random random (rand)
 
  • Like
Reactions: stxma
Answer: Random Number Algorithm

see this

click over to execute it and run it
n = 5 means it will display 5 numbers if you want to go to change it and do it eg10
% 50 means that it will display numbers up to 50 if you want to display up to 80 simply changing it to% 80

if on the line
srand ((unsigned) time (& t)); you change it to
// srand ((unsigned) time (& t));

you will see that each time you execute will display the same list
eg if you have 5 numbers

Row example
$ main
33
36
27
15
43

if you change it to 8 numbers eg
$ main
33
36
27
15
43
35
36
42

as you will see the first numbers are repeated because with // we have canceled srand and run only rand
if you deduct // from srand you will see different numbers each time

Example srand
$ main
41
0
26
34
12

if you change it to 8 numbers eg
6
32
3
28
15
4
13
21
 
Last edited:
  • Like
Reactions: stxma
Answer: Random Number Algorithm

I've made some changes if you want a quick look now
 
Answer: Random Number Algorithm

When I get drunk execute it
info01.jpg
which I'm going to use, like 5 from 45;
 

Predictions

  • 13:35
    Action 24
    • Sirens of Grevena - Kastoria
  • 14:30
    COSMOTE SPORT 1 HD
    • Leicester - West Brom
  • 15:00
    Novasports 1HD
    • Celta - Las Palmas
  • 15:00
    Novasports 2HD
    • Asteras Tripoli - Panaitolikos
  • 16:30
    Novasports 2HD
    • Wolfsburg - Bochum
  • 16:30
    Novasports 3HD
    • Hoffenheim - Gladbach
  • 16:30
    Novasports 5HD
    • Heidenheim - Leipzig
  • 16:30
    Novasports Prime
    • Matchday Live Minute by Minute
  • 16:30
    Novasports Start
    • Cologne - Darmstadt
  • 17:00
    Novasports 4HD
    • Luton - Brentford
  • 17:00
    COSMOTE SPORT 7 HD
    • Watford - Hull
  • 17:00
    Novasports Premier League
    • Sheffield United - Burnley
  • 17:15
    Novasports 1HD
    • Vallecano - Osasuna
  • 18:00
    Novasports Extra 1
    • Nantes - Rennes
  • 18:30
    COSMOTE SPORT 1 HD
    • OFI - Volos NPS
  • 19:00
    COSMOTE SPORT 2 HD
    • Empoli - Napoli
  • 19:15
    COSMOTE SPORT 3 HD
    • Manchester City - Chelsea
  • 19:15
    COSMOTE SPORT 7 HD
    • QPR - Preston
  • 19:30
    Novasports 1HD
    • Valencia - Betis
  • 19:30
    Novasports 3HD
    • Union Berlin-Bayern Munich
  • 19:30
    Novasports Prime
    • Atromitos - Kifissia
  • 19:30
    Novasports Prime
    • Atromitos - Kifissia
  • 21:00
    COSMOTE SPORT 9 HD
    • Al Etifaq - Al Wehda
  • 21:30
    Novasports 4HD
    • Hamburg - Holstein Kiel
  • 21:30
    Novasports Premier League
    • Wolves - Arsenal
  • 21:45
    COSMOTE SPORT 2 HD
    • Hellas Verona - Udinese
  • 21:45
    Novasports Start
    • Genk - Anderlecht
  • 22:00
    Novasports 1HD
    • Girona - Cadiz
  • 22:00
    Novasports 2HD
    • Lance - Clermont
  • 22:30
    COSMOTE SPORT 3 HD
    • Braga - Vizela
  • 15:30
    COSMOTE SPORT 4 HD
    • Fenerbahce - Darussafaka
  • 16:00
    Action 24
    • Herakles - Megarida
  • 17:15
    ERT3
    • Aris - Kolossos H Hotels
  • 19:30
    COSMOTE SPORT 4 HD
    • NBA on Fire 2023-24 E25
  • 20:00
    COSMOTE SPORT 4 HD
    • NBA 2023-24
  • 21:30
    COSMOTE SPORT 7 HD
    • Cremona - Brescia
  • 22:30
    COSMOTE SPORT 5 HD
    • NBA 2023-24
  • Tomorrow 21-04-2024
  • 01:00
    COSMOTE SPORT 7 HD
    • NBA TV 2023-24
  • 04:00
    COSMOTE SPORT 7 HD
    • NBA TV 2023-24
  • 06:00
    ANT1 +
    • Formula 1 Shanghai International Circuit Sprint
  • 10:00
    ANT1 +
    • Formula 1 Shanghai International Circuit Qualifying
  • 10:30
    COSMOTE SPORT 7 HD
    • Men's - Women's Greek Cup 2024
  • 12:30
    COSMOTE SPORT 7 HD
    • Men's - Women's Greek Cup 2024
  • 14:30
    COSMOTE SPORT 6 HD
    • ATP 500 2024
  • 15:30
    COSMOTE SPORT 5 HD
    • WRC 2024
  • 16:20
    COSMOTE SPORT 5 HD
    • WRC 2024
  • 17:00
    COSMOTE SPORT 6 HD
    • ATP 500 2024
  • 18:00
    COSMOTE SPORT 5 HD
    • WRC 2024
  • 19:00
    COSMOTE SPORT 5 HD
    • WRC 2024
General Chat
Help Users
  • No one is chatting right now.
  • PANATHA PANATHA:
    That's why I'm here...to inform about everything : bravo: : ROFLMAO: :p
  • B Forum Bot:
    User BraShaVa8888 started a new topic called "|_ Live _|" in the Football Predictions.
  • Ertzan Ertzan:
    according to the Greek media, as I read, Panathaspor decided to buy Giannis Goumas from Turkey. Very good move, well done : smk1:
  • Ertzan Ertzan:
    According to the coach Ismail Kartal, except for Ostervolde where he operated and Perez there is no absence. So what I'm waiting for and what 99% of those who watch Fener are waiting for is the following lineup

    Livakovic

    Osagi Samuel-Tsikou-Bekao-Kantioglou

    Ismail Yuksek-Fred
    Shimansky
    Kahveji-Tadic
    Jacko
    this is Fener's factory setting here you don't even need a coach everything works on auto
  • PANATHA PANATHA:
    Where did you read this?
  • Ertzan Ertzan:
    according to beisports turkey is a publication of sportime says
  • Ertzan Ertzan:
    was the lover accused of doping? he probably overdid it with the viagra : smk1:
  • PANATHA PANATHA:
    Sportime has hit rock bottom....never believe it...
  • PANATHA PANATHA:
    Of course you're laughing, but the story with Ioannidis showed once again how low social media has become....every idiot writes that he's being bullied without any natural consequences....and it's a good thing that within a few hours the hypothesis was proven to be a hoax ...and it didn't work
    2-3 days...
  • Ertzan Ertzan:
    but the situation is laughable, In today's day I don't wonder about anything really
  • Ertzan Forum Bot:
    User Ertzan started a new topic called "IFC Cup#15 FINAL (20-21/4/2024)" in the IFC Competition.
  • Ertzan Ertzan:
    In my eyes with the eleven that Fener has sent and it's the one I wrote above Fener normally wins 2-0 at least because the ball is a whore as Osim also said everything we see can go wrong (see yesterday's)
  • Ertzan Ertzan:
    Atjun showed once again how big a Fenerbahce fan he is and the match will be shown on free TV8 : smk1:
  • Ertzan Ertzan:
    with the entry of Zaits, Fener is currently playing with 10 players
  • PANATHA PANATHA:
    I say it will go to penalties
  • Ertzan Ertzan:
    I wish
  • Ertzan Ertzan:
    Dzikou holds the defense
  • Ertzan Ertzan:
    at the moment Fener is playing with 10 players
  • Ertzan Ertzan:
    Krunic even enters
  • Ertzan Ertzan:
    if Olympiacos can and really scores its magic, if it loses it deserves its fate
  • Ertzan Ertzan:
    Now the coach of Fener "fucked" them but he tells you that Olympiacos is not coming so I can put them
  • Ertzan Ertzan:
    as I wrote to a friend besides Batshuayi, I wouldn't change anyone and even if their legs had to be amputated, maybe instead of Bekao if he was injured I would put Bonucci for the penalties
  • Ertzan Ertzan:
    Krunic, Zaijc, Under, Caglar that useless there is put the incompetent
  • Water resistant Forum Bot:
    User Water resistant started a new topic called "is there an anonymous wallet?" in the Electronic wallets.
    Water resistant Forum Bot: User Waterproof started a new topic called "is there an anonymous wallet ?" in the...