Omgili - forum search, search forums  
  

Discussions about random string

Displaying 1 - 10 out of 25,976 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
Basicaly I have a user inputted string like: "hi my name is bob" what I would like to do is have my program randomly pick a new ending of the string and end it with my specified ending. For example: "hi my name DUR." "hi mDUR." etc etc I'm kinda new to...
Started by on , 6 posts by 6 people.  
Want this, but you can do something like the following import random user_string = 'hi my name_string]) You should read the docs for the random module to find out which method you should be usingSomething like this: import....
I need to find a random string within a string. My string looks as follows {theme}pink{/theme} or {theme}red{/theme} I need to get the text between the tags, the text may differ after each refresh. My code looks as follows $str = '{theme}pink{/theme}'...
Started by on , 6 posts by 6 people.  
The opening brace to make the regex non-greedy, which is important, if you have more than one tag per string.
A string will be made up of certain symbols (ax,bx,dx,c,acc for example) and numbers. ex: ax 5 5 dx 3 acc c ax bx I want to replace one or all of the symbols (randomly) with another symbol of the same set. ie, replace one of {ax,bx,dx,c,acc} with one ...
Started by on , 8 posts by 6 people.  
I was thinking i can just do(); ....
@steveth45 aw crap.
String text = "ax 5 5 dx 3 acc the symbols in the string with other random symbols.
The Random class to generate a random int to choose the index of the symbols.
Ask your Facebook Friends
I was just wondering what is the best way to randomize an array of strings in C#. My array contains about 500 strings and I'd like to create a new Array with the same strings but in a random order. Any suggestions?
Started by on , 13 posts by 13 people.  
Dumb....
And here's the corresponding C# code: Random rnd=new Random(); string[] MyRandomArray string[input.Length]; Random randomizer = new Random(); int i = 0; while (inputList.Count > 0-it-works way.
My list is defined as: List<string> firstNames = new List<string>(); When I add some strings to this list, how would I go about retrieving a random string from the list? Something like: string currName = someFunctionOf (firstNames);
Started by on , 5 posts by 5 people.  
To the list Random r = new Random( ); int index = r.Next( myList.Count ); string randomString = myList[ index"); firstNames.Add("name2"); firstNames.Add("name3"); firstNames.Add("namen"); Random randNum = new Random....
I need to generate a random string with a given length. This is my code so far. The problem is the random string is like " " or " " The same letter every time. Just when i restart the app the letter change. I need something like "asrDvgDgREGd" public ...
Started by on , 10 posts by 10 people.  
Try using the same random object for the whole string, rather than initializing one for each char Random SingleRandom = new Random(); public string GenerateStringNotThreadSafe(int length) { return your random ....
I have the following method that should create a 20 character ID (sometimes with a prefix) and return the ID. It seems to reset on launch and every time I use it it will create the same succession of identical numbers. +(NSString *)createUniqueIdentifier...
Started by on , 6 posts by 6 people.  
The arc4random() function returns pseudo-random numbers in the range of 0 to (2 *32)-1, and....
The S-Boxes can be in about (2* 1700) states.
I changed random() to arc4random() and it magically seems to work now.
I think I've figured it out.
How can I generate a (pseudo)random alpha-numeric string, something like: 'd79jd8c' in PHP?
Started by on , 6 posts by 6 people.  
Number and use it as the index to the $characters string to get a random character, and append it to your string: $string = ''; for ($i = 0; $i < $random_string_length; $i++) { $string .= $characters....
Hi, I've developed a random string generator but it's not behaving quite as I'm hoping. My goal is to be able to run this twice and generate two distinct four character random strings. However, it just generates one four character random string twice....
Started by on , 7 posts by 7 people.  
To solve the problem, move your Random instance outside and Floor and NextDouble ): private readonly Random _rng = new Random(); private const string _chars string(buffer....
Means that you'll get the same string.
I need a method to return a random string in the format: Letter Number Letter Number Letter Number (C#)
Started by on , 6 posts by 5 people.  
Random Members public static ....
Update You should put the random numbers and then generate your string by adding a number, a character, a numer etc...
Than you call these methods to create your string, Hope this help you.
Page: 1   2   3   4   5   6   7   8   9   10  
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost