第一次做饭
The first cooking
人生有许许多多的第一次,有喜有悲,每个第一次都是值得你珍惜。我也有许许多多的第一次,就拿做饭来说把,我把我家的厨房弄得昰一团糟啊!
Life have many for the first time, pregnant with sorrow, the first is worth you cherish. I also have many for the first time, took it to cook, I put my kitchen make is a mess!
“哎呀!今天谁来掌厨啊......”没人回答我。我找遍全家也不见半个人影。这昰什么?一张纸条,上面很随意的写着“中午我们不回家了,你自己做吃的吧”。我沉默了一会儿。然后,脑袋里出现了一句话“我不会做饭啊”!
"Oh! Today who is cooking......" Nobody answer me. I searched through family and theres nobody in sight. What is this? A note with a very casual write "noon we don go home, you do eat". I was silent for a moment. Then, head appeared a word "I can cook?"
“咕噜、咕噜......”!我的肚子开始叫苦了,没办法,自己动手做吧!我进到了那个让我不安的厨房。首先打开冰箱,“有什么呢”?鸡蛋、白菜、土豆。那今天就做个鸡蛋、白菜炒饭吧!
"Guru, guru......" ! My stomach began to complain, can , do it by yourself! I reached into the one that makes me uneasy kitchen. First open the refrigerator, "what?" Eggs, cabbage and potatoes. That do it today an egg, Chinese cabbage Fried rice!
呀!先把蛋打出来,搅啊搅,应该可以了。白菜,先洗洗。接着慢慢的一刀一刀的切着。“怎么会这样”?大小不一,厚的厚,断的断,白菜掉了一地;鸡蛋也弄得到处都昰。不管了,填饱肚子才昰最重要的。
Ah! The first type egg mixture. Stir o, should do. Chinese cabbage, wash up first. Then slowly one knife a sword of cutting. "How can that be?" Size is differ, thick thick, broken broken, Chinese cabbage dropped a land; Eggs also make the place is all. No matter, fill the stomach just is the most important.
先到油,少到一点。可以放鸡蛋了,炒阿炒;再放白菜,继续炒,再放饭又炒了一下。放了半勺的盐!翻啊翻,起锅了!鼓掌!
First to oil, little to one. Can put the eggs, fry, fry; Put Chinese cabbage, continue to fry, put rice and fry for a second. Put half spoon of salt! O turn over, it! Applause!
色还可以;气味有点怪;味——不敢吃!鼓起勇气尝一点,有点咸了,还有生菜没熟的味道,太油!总结完毕。我只有等着妈妈回来帮我收拾残局。还有,帮我做点可以吃的吃的!
Color can also; Smells a little strange; Taste-dare not eat! Summon up courage to taste a little bit, a little salty, and lettuce the taste of ripe, too oil! The summary. I only waiting for my mother came back to help me pick up the pieces. Also, help me to do something to eat, to eat!
只要在代码中使用随机函数即可实现随机抽取功能
一、vb随机数生成的方法
vb随机数生成函数是 Rnd[(number)],number 参数为可选项。在调用 Rnd 生成随机数之前,先使用 Randomize 初始化随机数生成器来产生种子,该生成器是根据系统计时器来产生种子的。
1、生成100以内的随机数
Randomize
Int(Rnd() * 100)//生成 0 - 99 之间的随机数
Int(Rnd() * 101)//生成 0 - 100 之间的随机数
2、生成指定范围随机数
由于 vb 没有提供直接生成指定范围随机数的函数,所以要把 Rnd 变通一下,方法如下:
Int((上限 - 下限 + 1) * Rnd + 下限);
把它封装成可直接调用的函数如下:
Function GetRandom(under, over As Integer) As Integer
If under
temp = under;
under = over;
over = temp;
End If
Randomize
GetRandom = Int((under - over + 1) * Rnd + over);
End Function
调用方法:
GetRandom(10, 100);//生成10到100的随机数
二、生成随机数的方法
1、方法:Random.Next(int minValue, int maxValue);
2、说明:
若 minValue 和 maxValue 都没有提供,则生成一个 0 - 2147483647 之间的随机数;
若 minValue 和 maxValue 只提供一个,则生成一个 0 - maxValue 之间的随机数;
若 minValue 和 maxValue 两个都提供,则生成一个 minValue - maxValue 之间的随机数;
3、举例
Dim ran = New System.Random()
ran.Next()//生成 0 - 2147483647 之间的随机数
ran.Next(100)//生成 0 - 100 之间的随机数
ran.Next(10, 100)//生成 10 - 100 之间的随机数
Dim ran = New Random(DateTime.Now.Millisecond)//通过日期的微秒生成随机数