C
C#β€’2y ago
wfsec

❔ please hwlp whats the python equilevant >:(

:C :C :C :C :C
var rand = new Random();
string str = "0";
const string chars = "ABCDEF0123456789";
str += new string(Enumerable.Repeat(chars, 31)
.Select(s => s[rand.Next(s.Length)]).ToArray());
return str;
var rand = new Random();
string str = "0";
const string chars = "ABCDEF0123456789";
str += new string(Enumerable.Repeat(chars, 31)
.Select(s => s[rand.Next(s.Length)]).ToArray());
return str;
15 Replies
wfsec
wfsecβ€’2y ago
whats the python equilevant 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭
Jayy
Jayyβ€’2y ago
this is a c# server try $python
wfsec
wfsecβ€’2y ago
'this is a python server'
Try $c#
SFM61319
SFM61319β€’2y ago
import random

str_ = '0'
chars = 'ABCDEF0123456789'
str_ += ''.join([random.choice(chars) for _ in range(31)])
import random

str_ = '0'
chars = 'ABCDEF0123456789'
str_ += ''.join([random.choice(chars) for _ in range(31)])
?
wfsec
wfsecβ€’2y ago
thank you ig ☺️
SFM61319
SFM61319β€’2y ago
Try it once
wfsec
wfsecβ€’2y ago
thank you mr helpful
SFM61319
SFM61319β€’2y ago
np
hiyosilver
hiyosilverβ€’2y ago
@SFM61319 Wouldn't it be better not to encourage obnoxious spammers by giving answers to questions that don't belong on this server?
SFM61319
SFM61319β€’2y ago
Hmmm, i thot giving the answer straight away and getting it over with would be better than them spamming even more for help
hiyosilver
hiyosilverβ€’2y ago
Alternatively just direct them to the appropriate server and if they insist they get politely told to leave. If you always "get it over with" you just encourage more people to do the same. Whatever, it's not my decision to make. Just my two cents.
Accord
Accordβ€’2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
RiA
RiAβ€’2y ago
It's not that hard to look up or ask what the syntax means, from the source language's server, infer the usage, and then ask the target language's server for what the equivalent of such a function is. You shouldn't encourage full code-block conversions for people unwilling to put in the minimum effort to understand.
Accord
Accordβ€’2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity. Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
❔ Code stops after a bitI'm trying to make 3d game in unity and i made dice check zone when i roll the dice it shows what i ❔ IComponentConnector.Connect is explictly implemented more than once errorHi I have this error and idk how to solve it! ive attached the code for that method btw im having liβœ… How to edit and save specific appsettings.json (project root) section?Hello, I have issue with editing specific section in the appsettings.json in project root folder, buThe score is not updating when objects are destroyed by a powerupthanks in advance!βœ… WPF - Detect if screen resolution is resized (ex. 125% or more)I'm writing a tool in which I need to first set the screen resolution, I currently have a 1920 x 108❔ Passing Variable from pageHello, i'm working with WPF and i use MVVM pattern. How can i share a variable from a page to differ❔ I have a ghost rectangle I can't get rid of in my Towers of Hanoi Windows FormsSo I used ChatGPT for a lot of the ground work and edited like I needed, and added a snap feature so❔ Regex to find string between _ or next uppercase letterCan you help me with regex? ``` Roads_RoadNode Roads_Road_261Node Roads_Curb_91Node Roads_CurbNode R❔ no auth error in a temp cleaner i dont know how to fixi even implemented a catch expression but its still not workingβœ… How do i make this create button work?(Razor Pages,entityframework)Ok, so i am making an inventory managment site, i connected an sql database to it and i can add stuf