random tag

39 questions


1 answers
142 views
0
I want to know how to use random in ruby.

How do I make a number from 0 to n in ruby?

2 years ago

1 answers
138 views
0
To extract a random number between two numbers in JavaScript

For example, random (1,6); I want to take any number between 1, 2, 3, 4, 5, 6 Is it possible with JavaScript?

2 years ago

1 answers
95 views
0
Can we take any element out of the array without using the length of the array?

How do I spin random to extract any element from an array?myarr = [1,6,43,82,3,68,9,2,1]The same number is stored and you want to extract any number from this myarr. I'm using the arrangement lengthmy...

2 years ago

1 answers
103 views
0
Is sland(time(NULL)) sufficiently different in the multi-thread function?

In C language, when random values are generated, sland(time(NULL)) is often added.As far as I know, you make a random value by giving time as a seedGenerate 8 threads simultaneously in a 4-core 8-thre...

2 years ago

1 answers
115 views
0
I have a question about Java date function

public static void main(String[] args) { HashMap<String, String> map = new HashMap<String, String>(); try { File file = new File(C:\\Users\\kimsuhee\\workspace\\Capstone\\src\\capstonedat...

2 years ago

1 answers
91 views
0
Python - Excluded from the list of values selected by random.choice() among random modules

student = ['a', 'b', 'c', 'd', 'e', ' f', ' g' ] number = 0import randomwhile number < 32: number += 1 print(number, random.choice(student)) input()While creating a program that sets the order, the...

2 years ago

1 answers
115 views
0
Open a new window with a random link to JavaScript

Is it possible to transfer a new window to a random link in JavaScript? To open the window randomly Url = new Array(1. Site link2. Site link,3.Site Link);num = Math.floor(Math.random()*Url.length);sel...

2 years ago

1 answers
109 views
0
Generate n integers randomly for Python

X = []for x in range (n): X.appned(random.randint(-999,999))When I try to randomly generate n integers in Python, I try to use randint, but I made an error to randomly generate n integers, and I saw t...

2 years ago

1 answers
110 views
0
I'm a beginner at Python. Let me ask you how to use random functions

Hello. I'm currently studying Python introductory course.I want to leave a question about the random function.import randomcount = 2paper_list = [ ]paper_list.append(A)paper_list.append (me)paper_list...

2 years ago

1 answers
87 views
0
Randomize lists

For example, what should I do if I want to show off 100 random things out of a thousand lists...?

2 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.