Random Walks in Polygons
Loading the math board and drawing, please wait…
This example demonstrates the dynamic process and trajectory of random walks within polygonal boundaries. It involves core mathematical concepts such as stochastic processes, probability & statistics, coordinate geometry calculations, and polygonal geometric properties. The construction utilizes GeoGebra commands like Polygon, RemoveUndefined, RandomElement, If, and Segment, along with objects like segments and coordinates. Suitable for high school and above, it helps visualize and simulate random processes in geometric spaces.
GeoGebra Commands & Parameters
Polygon(A, B, n) → poly1, f, q, I, J, K, L, M, N, O, P, g, h, i, j, k, l, m, pRemoveUndefined(list2) → list3RandomElement(list3) → C1RandomElement(list3) → C99RandomElement(list3) → C98RandomElement(list3) → C97RandomElement(list3) → C96RandomElement(list3) → C95RandomElement(list3) → C94RandomElement(list3) → C93RandomElement(list3) → C92RandomElement(list3) → C91RandomElement(list3) → C90RandomElement(list3) → C89RandomElement(list3) → C88RandomElement(list3) → C87RandomElement(list3) → C86RandomElement(list3) → C85RandomElement(list3) → C84RandomElement(list3) → C83RandomElement(list3) → C82RandomElement(list3) → C81RandomElement(list3) → C80RandomElement(list3) → C79RandomElement(list3) → C78RandomElement(list3) → C77RandomElement(list3) → C76RandomElement(list3) → C75RandomElement(list3) → C74RandomElement(list3) → C73RandomElement(list3) → C72RandomElement(list3) → C71RandomElement(list3) → C70RandomElement(list3) → C69RandomElement(list3) → C68RandomElement(list3) → C67RandomElement(list3) → C66RandomElement(list3) → C65RandomElement(list3) → C64RandomElement(list3) → C63RandomElement(list3) → C62RandomElement(list3) → C61RandomElement(list3) → C60RandomElement(list3) → C59RandomElement(list3) → C58RandomElement(list3) → C57RandomElement(list3) → C56RandomElement(list3) → C55RandomElement(list3) → C54RandomElement(list3) → C53RandomElement(list3) → C52RandomElement(list3) → C51RandomElement(list3) → C50RandomElement(list3) → C49RandomElement(list3) → C48RandomElement(list3) → C47RandomElement(list3) → C46RandomElement(list3) → C45RandomElement(list3) → C44RandomElement(list3) → C43RandomElement(list3) → C42RandomElement(list3) → C41RandomElement(list3) → C40RandomElement(list3) → C39RandomElement(list3) → C38RandomElement(list3) → C37RandomElement(list3) → C36RandomElement(list3) → C35RandomElement(list3) → C34RandomElement(list3) → C33RandomElement(list3) → C32RandomElement(list3) → C31RandomElement(list3) → C30RandomElement(list3) → C29RandomElement(list3) → C28RandomElement(list3) → C27RandomElement(list3) → C26RandomElement(list3) → C25RandomElement(list3) → C24RandomElement(list3) → C23RandomElement(list3) → C22RandomElement(list3) → C21RandomElement(list3) → C20RandomElement(list3) → C19RandomElement(list3) → C18RandomElement(list3) → C17RandomElement(list3) → C16RandomElement(list3) → C15RandomElement(list3) → C14RandomElement(list3) → C13RandomElement(list3) → C12RandomElement(list3) → C11RandomElement(list3) → C10RandomElement(list3) → C9RandomElement(list3) → C8RandomElement(list3) → C7RandomElement(list3) → C6RandomElement(list3) → C5RandomElement(list3) → C4RandomElement(list3) → C3If(nn ≥ A2, Translate[B1, Vector[B1, C1] / Length[Vector[B1, C1]]]) → B2RandomElement(list3) → C2If(nn ≥ A3, Translate[B2, Vector[B2, C2] / Length[Vector[B2, C2]]]) → B3If(nn ≥ A4, Translate[B3, Vector[B3, C3] / Length[Vector[B3, C3]]]) → B4If(nn ≥ A5, Translate[B4, Vector[B4, C4] / Length[Vector[B4, C4]]]) → B5If(nn ≥ A6, Translate[B5, Vector[B5, C5] / Length[Vector[B5, C5]]]) → B6If(nn ≥ A7, Translate[B6, Vector[B6, C6] / Length[Vector[B6, C6]]]) → B7If(nn ≥ A8, Translate[B7, Vector[B7, C7] / Length[Vector[B7, C7]]]) → B8If(nn ≥ A9, Translate[B8, Vector[B8, C8] / Length[Vector[B8, C8]]]) → B9If(nn ≥ A10, Translate[B9, Vector[B9, C9] / Length[Vector[B9, C9]]]) → B10If(nn ≥ A11, Translate[B10, Vector[B10, C10] / Length[Vector[B10, C10]]]) → B11If(nn ≥ A12, Translate[B11, Vector[B11, C11] / Length[Vector[B11, C11]]]) → B12If(nn ≥ A13, Translate[B12, Vector[B12, C12] / Length[Vector[B12, C12]]]) → B13If(nn ≥ A14, Translate[B13, Vector[B13, C13] / Length[Vector[B13, C13]]]) → B14If(nn ≥ A15, Translate[B14, Vector[B14, C14] / Length[Vector[B14, C14]]]) → B15If(nn ≥ A16, Translate[B15, Vector[B15, C15] / Length[Vector[B15, C15]]]) → B16If(nn ≥ A17, Translate[B16, Vector[B16, C16] / Length[Vector[B16, C16]]]) → B17If(nn ≥ A18, Translate[B17, Vector[B17, C17] / Length[Vector[B17, C17]]]) → B18If(nn ≥ A19, Translate[B18, Vector[B18, C18] / Length[Vector[B18, C18]]]) → B19If(nn ≥ A20, Translate[B19, Vector[B19, C19] / Length[Vector[B19, C19]]]) → B20If(nn ≥ A21, Translate[B20, Vector[B20, C20] / Length[Vector[B20, C20]]]) → B21If(nn ≥ A22, Translate[B21, Vector[B21, C21] / Length[Vector[B21, C21]]]) → B22If(nn ≥ A23, Translate[B22, Vector[B22, C22] / Length[Vector[B22, C22]]]) → B23If(nn ≥ A24, Translate[B23, Vector[B23, C23] / Length[Vector[B23, C23]]]) → B24If(nn ≥ A25, Translate[B24, Vector[B24, C24] / Length[Vector[B24, C24]]]) → B25If(nn ≥ A26, Translate[B25, Vector[B25, C25] / Length[Vector[B25, C25]]]) → B26If(nn ≥ A27, Translate[B26, Vector[B26, C26] / Length[Vector[B26, C26]]]) → B27If(nn ≥ A28, Translate[B27, Vector[B27, C27] / Length[Vector[B27, C27]]]) → B28If(nn ≥ A29, Translate[B28, Vector[B28, C28] / Length[Vector[B28, C28]]]) → B29If(nn ≥ A30, Translate[B29, Vector[B29, C29] / Length[Vector[B29, C29]]]) → B30If(nn ≥ A31, Translate[B30, Vector[B30, C30] / Length[Vector[B30, C30]]]) → B31If(nn ≥ A32, Translate[B31, Vector[B31, C31] / Length[Vector[B31, C31]]]) → B32If(nn ≥ A33, Translate[B32, Vector[B32, C32] / Length[Vector[B32, C32]]]) → B33If(nn ≥ A34, Translate[B33, Vector[B33, C33] / Length[Vector[B33, C33]]]) → B34If(nn ≥ A35, Translate[B34, Vector[B34, C34] / Length[Vector[B34, C34]]]) → B35If(nn ≥ A36, Translate[B35, Vector[B35, C35] / Length[Vector[B35, C35]]]) → B36If(nn ≥ A37, Translate[B36, Vector[B36, C36] / Length[Vector[B36, C36]]]) → B37If(nn ≥ A38, Translate[B37, Vector[B37, C37] / Length[Vector[B37, C37]]]) → B38If(nn ≥ A39, Translate[B38, Vector[B38, C38] / Length[Vector[B38, C38]]]) → B39If(nn ≥ A40, Translate[B39, Vector[B39, C39] / Length[Vector[B39, C39]]]) → B40If(nn ≥ A41, Translate[B40, Vector[B40, C40] / Length[Vector[B40, C40]]]) → B41If(nn ≥ A42, Translate[B41, Vector[B41, C41] / Length[Vector[B41, C41]]]) → B42If(nn ≥ A43, Translate[B42, Vector[B42, C42] / Length[Vector[B42, C42]]]) → B43If(nn ≥ A44, Translate[B43, Vector[B43, C43] / Length[Vector[B43, C43]]]) → B44If(nn ≥ A45, Translate[B44, Vector[B44, C44] / Length[Vector[B44, C44]]]) → B45If(nn ≥ A46, Translate[B45, Vector[B45, C45] / Length[Vector[B45, C45]]]) → B46If(nn ≥ A47, Translate[B46, Vector[B46, C46] / Length[Vector[B46, C46]]]) → B47If(nn ≥ A48, Translate[B47, Vector[B47, C47] / Length[Vector[B47, C47]]]) → B48If(nn ≥ A49, Translate[B48, Vector[B48, C48] / Length[Vector[B48, C48]]]) → B49If(nn ≥ A50, Translate[B49, Vector[B49, C49] / Length[Vector[B49, C49]]]) → B50If(nn ≥ A51, Translate[B50, Vector[B50, C50] / Length[Vector[B50, C50]]]) → B51If(nn ≥ A52, Translate[B51, Vector[B51, C51] / Length[Vector[B51, C51]]]) → B52If(nn ≥ A53, Translate[B52, Vector[B52, C52] / Length[Vector[B52, C52]]]) → B53If(nn ≥ A54, Translate[B53, Vector[B53, C53] / Length[Vector[B53, C53]]]) → B54If(nn ≥ A55, Translate[B54, Vector[B54, C54] / Length[Vector[B54, C54]]]) → B55If(nn ≥ A56, Translate[B55, Vector[B55, C55] / Length[Vector[B55, C55]]]) → B56If(nn ≥ A57, Translate[B56, Vector[B56, C56] / Length[Vector[B56, C56]]]) → B57If(nn ≥ A58, Translate[B57, Vector[B57, C57] / Length[Vector[B57, C57]]]) → B58If(nn ≥ A59, Translate[B58, Vector[B58, C58] / Length[Vector[B58, C58]]]) → B59If(nn ≥ A60, Translate[B59, Vector[B59, C59] / Length[Vector[B59, C59]]]) → B60If(nn ≥ A61, Translate[B60, Vector[B60, C60] / Length[Vector[B60, C60]]]) → B61If(nn ≥ A62, Translate[B61, Vector[B61, C61] / Length[Vector[B61, C61]]]) → B62If(nn ≥ A63, Translate[B62, Vector[B62, C62] / Length[Vector[B62, C62]]]) → B63If(nn ≥ A64, Translate[B63, Vector[B63, C63] / Length[Vector[B63, C63]]]) → B64If(nn ≥ A65, Translate[B64, Vector[B64, C64] / Length[Vector[B64, C64]]]) → B65If(nn ≥ A66, Translate[B65, Vector[B65, C65] / Length[Vector[B65, C65]]]) → B66If(nn ≥ A67, Translate[B66, Vector[B66, C66] / Length[Vector[B66, C66]]]) → B67If(nn ≥ A68, Translate[B67, Vector[B67, C67] / Length[Vector[B67, C67]]]) → B68If(nn ≥ A69, Translate[B68, Vector[B68, C68] / Length[Vector[B68, C68]]]) → B69If(nn ≥ A70, Translate[B69, Vector[B69, C69] / Length[Vector[B69, C69]]]) → B70If(nn ≥ A71, Translate[B70, Vector[B70, C70] / Length[Vector[B70, C70]]]) → B71If(nn ≥ A72, Translate[B71, Vector[B71, C71] / Length[Vector[B71, C71]]]) → B72If(nn ≥ A73, Translate[B72, Vector[B72, C72] / Length[Vector[B72, C72]]]) → B73If(nn ≥ A74, Translate[B73, Vector[B73, C73] / Length[Vector[B73, C73]]]) → B74If(nn ≥ A75, Translate[B74, Vector[B74, C74] / Length[Vector[B74, C74]]]) → B75If(nn ≥ A76, Translate[B75, Vector[B75, C75] / Length[Vector[B75, C75]]]) → B76If(nn ≥ A77, Translate[B76, Vector[B76, C76] / Length[Vector[B76, C76]]]) → B77If(nn ≥ A78, Translate[B77, Vector[B77, C77] / Length[Vector[B77, C77]]]) → B78If(nn ≥ A79, Translate[B78, Vector[B78, C78] / Length[Vector[B78, C78]]]) → B79If(nn ≥ A80, Translate[B79, Vector[B79, C79] / Length[Vector[B79, C79]]]) → B80If(nn ≥ A81, Translate[B80, Vector[B80, C80] / Length[Vector[B80, C80]]]) → B81If(nn ≥ A82, Translate[B81, Vector[B81, C81] / Length[Vector[B81, C81]]]) → B82If(nn ≥ A83, Translate[B82, Vector[B82, C82] / Length[Vector[B82, C82]]]) → B83If(nn ≥ A84, Translate[B83, Vector[B83, C83] / Length[Vector[B83, C83]]]) → B84If(nn ≥ A85, Translate[B84, Vector[B84, C84] / Length[Vector[B84, C84]]]) → B85If(nn ≥ A86, Translate[B85, Vector[B85, C85] / Length[Vector[B85, C85]]]) → B86If(nn ≥ A87, Translate[B86, Vector[B86, C86] / Length[Vector[B86, C86]]]) → B87If(nn ≥ A88, Translate[B87, Vector[B87, C87] / Length[Vector[B87, C87]]]) → B88If(nn ≥ A89, Translate[B88, Vector[B88, C88] / Length[Vector[B88, C88]]]) → B89If(nn ≥ A90, Translate[B89, Vector[B89, C89] / Length[Vector[B89, C89]]]) → B90If(nn ≥ A91, Translate[B90, Vector[B90, C90] / Length[Vector[B90, C90]]]) → B91If(nn ≥ A92, Translate[B91, Vector[B91, C91] / Length[Vector[B91, C91]]]) → B92If(nn ≥ A93, Translate[B92, Vector[B92, C92] / Length[Vector[B92, C92]]]) → B93If(nn ≥ A94, Translate[B93, Vector[B93, C93] / Length[Vector[B93, C93]]]) → B94If(nn ≥ A95, Translate[B94, Vector[B94, C94] / Length[Vector[B94, C94]]]) → B95If(nn ≥ A96, Translate[B95, Vector[B95, C95] / Length[Vector[B95, C95]]]) → B96If(nn ≥ A97, Translate[B96, Vector[B96, C96] / Length[Vector[B96, C96]]]) → B97If(nn ≥ A98, Translate[B97, Vector[B97, C97] / Length[Vector[B97, C97]]]) → B98If(nn ≥ A99, Translate[B98, Vector[B98, C98] / Length[Vector[B98, C98]]]) → B99Segment(B1, B2) → D1Segment(B2, B3) → D2Segment(B3, B4) → D3Segment(B4, B5) → D4Segment(B5, B6) → D5Segment(B6, B7) → D6Segment(B7, B8) → D7Segment(B8, B9) → D8Segment(B9, B10) → D9Segment(B10, B11) → D10Segment(B11, B12) → D11Segment(B12, B13) → D12Segment(B13, B14) → D13Segment(B14, B15) → D14Segment(B15, B16) → D15Segment(B16, B17) → D16Segment(B17, B18) → D17Segment(B18, B19) → D18Segment(B19, B20) → D19Segment(B20, B21) → D20Segment(B21, B22) → D21Segment(B22, B23) → D22Segment(B23, B24) → D23Segment(B24, B25) → D24Segment(B25, B26) → D25Segment(B26, B27) → D26Segment(B27, B28) → D27Segment(B28, B29) → D28Segment(B29, B30) → D29Segment(B30, B31) → D30Segment(B31, B32) → D31Segment(B32, B33) → D32Segment(B33, B34) → D33Segment(B34, B35) → D34Segment(B35, B36) → D35Segment(B36, B37) → D36Segment(B37, B38) → D37Segment(B38, B39) → D38Segment(B39, B40) → D39Segment(B40, B41) → D40Segment(B41, B42) → D41Segment(B42, B43) → D42Segment(B43, B44) → D43Segment(B44, B45) → D44Segment(B45, B46) → D45Segment(B46, B47) → D46Segment(B47, B48) → D47Segment(B48, B49) → D48Segment(B49, B50) → D49Segment(B50, B51) → D50Segment(B51, B52) → D51Segment(B52, B53) → D52Segment(B53, B54) → D53Segment(B54, B55) → D54Segment(B55, B56) → D55Segment(B56, B57) → D56Segment(B57, B58) → D57Segment(B58, B59) → D58Segment(B59, B60) → D59Segment(B60, B61) → D60Segment(B61, B62) → D61Segment(B62, B63) → D62Segment(B63, B64) → D63Segment(B64, B65) → D64Segment(B65, B66) → D65Segment(B66, B67) → D66Segment(B67, B68) → D67Segment(B68, B69) → D68Segment(B69, B70) → D69Segment(B70, B71) → D70Segment(B71, B72) → D71Segment(B72, B73) → D72Segment(B73, B74) → D73Segment(B74, B75) → D74Segment(B75, B76) → D75Segment(B76, B77) → D76Segment(B77, B78) → D77Segment(B78, B79) → D78Segment(B79, B80) → D79Segment(B80, B81) → D80Segment(B81, B82) → D81Segment(B82, B83) → D82Segment(B83, B84) → D83Segment(B84, B85) → D84Segment(B85, B86) → D85Segment(B86, B87) → D86Segment(B87, B88) → D87Segment(B88, B89) → D88Segment(B89, B90) → D89Segment(B90, B91) → D90Segment(B91, B92) → D91Segment(B92, B93) → D92Segment(B93, B94) → D93Segment(B94, B95) → D94Segment(B95, B96) → D95Segment(B96, B97) → D96Segment(B97, B98) → D97Segment(B98, B99) → D98If(nn ≥ A100, Translate[B99, Vector[B99, C99] / Length[Vector[B99, C99]]]) → B100Segment(B99, B100) → D99RandomElement(list3) → C100
AI Drawing Prompt Reference
Draw a random walk trajectory inside a polygon, starting from a vertex and moving randomly to adjacent vertices each time, connecting each movement point with a line segment to show the dynamic process of the walk, with clear polygon boundaries and randomly scattered trajectory lines inside the polygon, demonstrating the characteristics of random walks.
The prompt above was compiled from the original drawing commands and is for reference only.