Random Number Algorithm

stxma

Well-Known Member
1 Oct 2008
1,073
304
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

McLaren17

IFC # 9 Cup Winner 2017-18
Staff member
21 Mar 2003
5,349
2,264
113
127.0.0.1
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 "sequence of numbers"
the srand () function produces random numbers
Last edited:

stxma

Well-Known Member
1 Oct 2008
1,073
304
83
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 "sequence of numbers"
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.

stxma

Well-Known Member
1 Oct 2008
1,073
304
83
Answer: Random Number Algorithm

Hello if you were a Greek if you do not know English. If you want to simplify it.

McLaren17

IFC # 9 Cup Winner 2017-18
Staff member
21 Mar 2003
5,349
2,264
113
127.0.0.1
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

stxma

Well-Known Member
1 Oct 2008
1,073
304
83
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:

McLaren17

IFC # 9 Cup Winner 2017-18
Staff member
21 Mar 2003
5,349
2,264
113
127.0.0.1
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

McLaren17

IFC # 9 Cup Winner 2017-18
Staff member
21 Mar 2003
5,349
2,264
113
127.0.0.1
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)); 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

McLaren17

IFC # 9 Cup Winner 2017-18
Staff member
21 Mar 2003
5,349
2,264
113
127.0.0.1
Answer: Random Number Algorithm

I've made some changes if you want a quick look now

stxma

Well-Known Member
1 Oct 2008
1,073
304
83
Answer: Random Number Algorithm

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

McLaren17

IFC # 9 Cup Winner 2017-18
Staff member
21 Mar 2003
5,349
2,264
113
127.0.0.1
Answer: Random Number Algorithm

copied the code
<stdio.h> <stdlib.h>

Capture.PNG</ stdlib.h> </ stdio.h>
Last edited:

Today's Birthday

About us

  • The infobeto community is considered a meeting point for gamers and people in the gambling market for consultations, advice, updates, information exchange, problem solving with companies, etc. We are proud to have the largest gaming forum in Greece and one of the world's largest and we work daily to keep the level of our community high.

Quick navigation

User menu

Follow us on Facebook

General Chat
Aid Users
  • No one is chatting right now.
    Forum Bot: Balaton has started a new theme called "Arrest for illegal betting with ...