-
The version 2 subroutine startup window is created.
Artboard 1Move (0, 0, width, height).
Clock 1Clock cycle 1000
Subroutine Clock 1 cycle event.
Local variables: font size, integer.
Artboard 1Clear (, set random number seed ().)
The font size is a random number (12, 100).
Artboard 1Font. Font size Font size.
Artboard 1Text color takes the color value (take random number (0, 255), take random number (0, 255), take random number (0, 255)).
Artboard 1Positional write-out (take random number (0, width font size), take random number (0, height font size), ancestor).
The font size is a random number (12, 100).
Artboard 1Font. Font size Font size.
Artboard 1Text color takes the color value (take random number (0, 255), take random number (0, 255), take random number (0, 255)).
Artboard 1Positional write out (take random number (0, width font size), take random number (0, height font size), country).
The font size is a random number (12, 100).
Artboard 1Font. Font size Font size.
Artboard 1Text color takes the color value (take random number (0, 255), take random number (0, 255), take random number (0, 255)).
Artboard 1Positional write-out (take random numbers (0, width font size), take random numbers (0, height font size), you).
The font size is a random number (12, 100).
Artboard 1Font. Font size Font size.
Artboard 1Text color takes the color value (take random number (0, 255), take random number (0, 255), take random number (0, 255)).
Artboard 1Positional writing (take random numbers (0, width font size), take random numbers (0, height font size), OK).
-
.Version 2
Subroutine Clock 1 cycle event.
Count Count 1
If (count 0).
Set the random number seed ().
Label 16Title Multiple Choice (take random numbers (1, 2), "This is the first sentence", "This is the second sentence").
Take a random number and it can be followed by 1 n
-
Split the text into an array first, and then add an if command is OK.
-
.Version 2
Local variables Random, Textual, ,"0"
Randomize the group. Content = Random group [take random number (1, take the number of array members (random group))].
-
.Version 2
Subroutine button 1 is clicked.
Local variables index, integer.
The index takes a random number (1, 3).
Box 1Content Multiple choice (index, "yes", "go", "a").
-
This requires a dictionary, for example, to create a textual constant named 'dictionary', and then store a certain number of meaningless words in this constant, such as 1000 words, and then randomly take out the required number of words according to the specified number of words when calling:
Count the number of random words at the beginning of the cycle
Random number = take random number (1,998).
Determine the first part of the cycle (random number %2<>0).'This loop is to prevent random numbers from being odd, and the text taken out is garbled, so even numbers are arbitrary.
Random number = take random number (1,998).
Judge the end of the loop ().
Random text = random text + take the middle of the text (dictionary, take the random number (1,998), 2) count the end of the cycle ().
box result. Content = random text + box fixed text. Content.
-
You can get a string of strings by counting the times to achieve the result you want.
The ** provided below is generic.
**As follows: Version 2
The subroutine takes random length text, text-based.
Parameter takes the text of Chinese characters, text type.
Parameter The number of extractions, integers.
The local variable temp, integer.
Local variables Fetch out the text, textual.
Set the random number seed ().
Count the number of cycles (number of take-outs, ).
Taken out text Taken out text takes the middle of the text (take the text of the Chinese character, take the random number (1, take the text length (take the text of the Chinese character) 2) 2 1, 2).
Counting cycle tail ().
Return (Text taken out).
Call ** as follows (example):
box outputs the result. Content Take a random length of text (box last name. contents, to an integer (box name length. Contents)) Take a random length of text (box name. contents, to an integer (box name length. Content.
In my demo program, the demo results are as follows:
If you don't want words to be repeated, use the following, which is also universal:
Version 2 subroutine takes random length text, text-based.
Parameter takes the text of Chinese characters, text type.
Parameter The number of extractions, integers.
The local variable temp, integer.
Local variables: Temporary text, textual.
Local variables: random text, textual.
Local variables Fetch out the text, textual.
Set the random number seed ().
Temporary text Text that takes Chinese characters.
Count the number of cycles (number of take-outs, ).
Random text takes the middle of the text (temporary text, takes random number (1, takes text length (temporary text) 2) 2 1, 2).
Taken out text Taken out text Random text.
Temporary Text Subtext Substitution (Temporary Text, Random Text, "True").
Counting cycle tail ().
Return (Text taken out).
This ** meets your requirements.
If you have any questions, please ask.
-
Simple, use the configuration item, the configuration name is 123456 like this, and then take the configuration item randomly.
-
This is not difficult, there is q in the information
-
As far as I know, in any language, variables are defined by the user, global variables are allocated in heap memory, and local variables are allocated in stack memory (C does this, I don't know if E is it, though.
I guess it's about the same). The compiler is in the compilation process, so the variable will be translated into an address, that is, in the process of program running, there is no variable invariant at all, that is some instruction set and address, the program achieves the data in the variable by addressing it, so, I personally think that the owner's idea does not work, in the compilation process, the constant is directly replaced with the corresponding value. The C language seems to replace constants with values at precompile time. Easy Language is pre-compiling in the process, and the first step in estimating compilation is to replace constants with values.
Therefore, all you can get is the value corresponding to the three variables of abc, and it is impossible to take the variable, if you just take one of the three variables at random, then you can use the array no matter what the variable name is, it is just custom, and the value is still taken in the end.
-
.Version 2
Assembly. Window Assembly 1
Assembly variables.
number, integer type.
Assembly variables.
Numeric, integer type.
Subroutine. Button 1 is clicked.
Box 1Content.
Number Take a random number.
Count the first cycle.
number,) number. Take a random number.
Box 1Content.
Box 1Content.
to text. figures).
Counting cycle tail ().
Give points and give points. Give points and give points.
Give points and give points. Give points and give points.
-
I don't understand what you're asking, but for the time being, I understand it as the number of pure numbers in the judgment box.
For example, boxes. content="This year is 2011", the output is 4
Here's how it works (different methods, one example).
First take the length of the original text, then replace the subtext, replace 0 9, and then take the length of the text, the difference between the number of numbers.
Create a new Windows windower.
Add assembly variables (local, global variables, as appropriate).
Replaced text", textual type.
Number of original text" Integer.
Number of post-text" integers.
Number of numbers'Integer.
**As follows. Number of original text = length of text (Box 1.)Content. 'The number of characters in a Chinese character is 2, and the number of numeric texts is 1
Replaced text in Box 1Content.
Replaced text Subtext Replacement (replaced text, "0", true).
Replaced text Subtext Replacement (replaced text, "1", true).
Replaced text Subtext Replacement (replaced text, "2", true).
Replaced text Subtext Replacement (Replaced text, "3", true).
Replaced text Subtext Replacement (replaced text, "4", true).
Replaced text Subtext Replacement (replaced text, "5", true).
Replaced text Subtext Replacement (replaced text, "6", true).
Replaced text Subtext Replacement (replaced text, "7", true).
Replaced text Subtext Replacement (replaced text, "8", true).
Replaced text Subtext Replacement (replaced text, "9", true) 'Finally replacing all the numbers, the result of the example is "this year is the year".
Number of text = length of text (replaced text).
Number of numbers = number of original text - number of post-text '"Number of numbers" is the number of numbers in box 1!!
-
There are multiple ways to do it.
1. Put these 62 characters in an array, and then randomly take out two array members, swap their contents, and repeat 100 times or more to get a random string array.
2. As before, make an array, and then randomly take a character from it and put it in another array, and delete this member in the original array, and then take a random one, repeat many times, the new array is an array of random characters, note: each member of the original array is deleted, the upper limit of the random number should be reduced by one.
The first method is recommended.
-
Immediately do not repeat this algorithm is unscientific, judging whether there is an array.
If it doesn't exist, add it to the array.
Existence is judged on reprinting another string.
If not, I'll give you an idea here. There are examples where you want to leave me an email address, written in previous years, which may be incomplete.
For example: ab20sf combination.
Think of them as 123456
a=1 b=2 go down at once...
The algorithm can be written like this.
Then there are numbers that are turning in the substitution of numbers for characters at a time.
-
Anonymous 2009-9-6 18:28
Well, I think he's quite right.
-
Subroutines and random text colors.
Set the random number seed ().
Judge the first of the cycle (random number》 = 0).
Random number = take random number (1,3).'Write a range of numbers if true (random number = 1) if there are several colors
Label. Text color = red.
If true (random number = 2).
Label. Text color = blue.
If true (random number = 3).
Label. Text color = green.
Judge the end of the loop ().
Note: It is best to use a separate thread to run this function, occupying the main thread will cause the program to lag.
-
Add a clock, set the period to 1000, double-click the clock, and write **:Label 1Text color = take the color value (take random number (), take random number (), take random number ()).
Easy language. Ways to close the window:
1. First of all, in the open home page of Easy Language, open the Easy Language software environment. >>>More
Sets the window transparency (object. Take the window handle (), 0). >>>More
The main building is to supplement the computer knowledge, the text type () is just text, and it is impossible to store any information about the color and size of the text. That is, the text of the infobox cannot be changed in its "style". Your so-called font size, font color, and tilt only exist in window controls such as boxes and labels, so you might as well use the "font" class. >>>More
Doesn't the key wizard come with a footstep?,There's this function.,Find it yourself.。
Yi Language is a self-developed Chinese programming language that is suitable for national conditions and is easy to learn and use for people of different levels and professions. Easy Language lowers the threshold for the majority of computer users to program, especially users who do not know English at all or have little understanding of English, can enter the door of Windows programming extremely quickly by using this language. Yi Language Chinese Programming Environment is a programming tool environment that supports programming based on Chinese characters and words, fully visualized, and cross-mainstream operating system platforms. Available in simplified and traditional Chinese, English, Japanese and other languages; Able to call to and from commonly used programming languages; It has interfaces and supporting tools that make full use of various resources such as API, COM, DLL, OCX components, various mainstream databases, and various utilities. >>>More