| |

VerySource

 Forgot password?
 Register
Search
View: 785|Reply: 6

Random extraction problem

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-20 08:20:02
| Show all posts |Read mode
How to randomly select a number in a range number ~~
For example, `` A random number within 1: 100 is divisible by 5.
Just if the first draw is: 25
Second draw: 55
How should I write it ??
Reply

Use magic Report

0

Threads

9

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-1-28 14:54:01
| Show all posts
You just randomly select a number from 1 to 20 and multiply it by 5.
Reply

Use magic Report

0

Threads

52

Posts

34.00

Credits

Newbie

Rank: 1

Credits
34.00

 China

Post time: 2020-1-28 15:27:01
| Show all posts
Generate a random number from 0 to 20 and return the value by * 5
Reply

Use magic Report

1

Threads

26

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-1-28 19:36:01
| Show all posts
I want to say everything! Help you
See what a good way!
Reply

Use magic Report

0

Threads

60

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-1-29 11:27:01
| Show all posts
Write a code

System.Radam rm;
int i = rm.next (1,6) * 5;
Responsw.write (i);
Reply

Use magic Report

1

Threads

26

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-1-30 00:36:02
| Show all posts
System.Random
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-1-30 21:00:01
| Show all posts
thx ~~ i know ~~
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list